similar to: db:create & db:migrate issues

Displaying 20 results from an estimated 2000 matches similar to: "db:create & db:migrate issues"

2007 Nov 08
0
error on migration
Hi all, I''m just getting started with rspec. I''m using trunk rspec with edge rails. I get an error on migration though, here it is: rake db:migrate RAILS_ENV="test" --trace (in /home/pat/railsapp) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method `failure_message'' for class
2013 Feb 02
2
rake db:migrate problem
mini@mini:~/Sites/music_library$ rake db:migrate rake aborted! couldn''t parse YAML at line 28 column 6 /home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in `database_configuration'' /home/mini/my_gems/gems/activerecord-3.2.9/lib/active_record/railtie.rb:78:in `block (2 levels) in <class:Railtie>''
2008 Feb 24
1
Install / Build fail on OSX Server 10.5.2
Hello, I would like to install SuperRedCloth on my server, here is the entire log : gem install superredcloth --source http://code.whytheluckystiff.net Building native extensions. This could take a while... ERROR: Error installing superredcloth: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install superredcloth
2009 Nov 07
0
wrong argument type Mysql (expected Struct) running rake with Ruby 1.9 / Rails 2.3.3
I''m use Ruby 1.9 via rvm and Rails 2.3.3. I''m on OS X 10.5 and I have the mysql 2.8.1 gem installed. When I run rake on my rails app, I get the error "wrong argument type Mysql (expected Struct)". I can run the app fine with script/server and script/console fine. Is anyone else having this problem or know what might cause this problem? Here''s the stack
2009 Feb 21
3
Help w/ rake db:migrate error
I made a few changes to my migration files, dropped all tables (rake db:drop:all), and when I went to re-create everything (rake db:migrate), I get this: rake db:migrate --trace (in /Users/Eric/Development/Work/Rails/pcod) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method `random'' for Tidbit(Table doesn''t
2010 May 28
0
Rake Aborted! db:migrate
Hello, I am trying do a migrate of my database but I have problems, I write this in the console: [console] rake db:migrate [/console] And say me: [console] (in /home/distriker/Documentos/public_html/crf) !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. rake aborted! no such file to load -- mysql (See full trace by
2008 Jan 31
1
never have been able to run rake doc:app
Perhaps it''s just a Fedora thing but it would be nice to generate my application''s API $ rake doc:app --trace (in /home/storage/users/craig/svn/th-db/branches/phase5) ** Invoke doc:app (first_time) ** Invoke doc/app/index.html (first_time) rake aborted! Don''t know how to build task ''doc/README_FOR_APP''
2012 Sep 18
2
NoMethodError with rake db:migrate
Hi! First of all, this is my first application on Rails, and i''m stuck at a migration. i created a demo app (the demo_app from michael hartl''s tutorial) as usual: rails new demo_app, rails generate scaffold User name:string email:string, and when i do rake db:migrate, this stack appears: rake db:migrate --trace ** Invoke db:migrate (first_time) ** Invoke environment
2009 Mar 09
2
rake:db:prepare Mysql::Error: #42000BLOB/TEXT column ' used in key specification without a length
I have a test environment running rails 1.2.3. I am just starting to introduce testing into this project. When I run a rake db:prepare. I see this message "Mysql::Error: #42000BLOB/TEXT column ''short_description'' used in key specification without a key length: CREATE INDEX ''short_description'' on cached_cars (''short_description'') The
2008 Jul 16
2
Error when running my unit test...
Hi Rails team Learning ROR, and is doing the chapter with test..... feel like skipping this, but.... (using NetBeans IDE 6.1) I have created this story_test.rb, and when I run the ''rake test:units (selected from the GUI), I get this error: (in /data/NewOrder/Projects/ROR/shovell) ** Invoke test:units (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment
2009 Nov 03
2
Problem with gem install and rails update
Hi everyone. I''m new to Rails and have been trying to learn something listening to Ryan Bates'' podcast. I have tried to install the authlogic gem, inserting the extension as a dependency in the environment.rb file as requested. But, when I run ''sudo rake gems:install'' I get an error: wrong number of arguments. I''ve pasted the trace blow. Then
2009 Apr 04
11
rake aborted! undefined method `empty?' for nil:NilClass
Hi, I''m getting the next errors, would anyone have any suggestions? Thanks. [~/rails/hip]# rake --trace db:migrate RAILS_ENV="production" (in /home/domain/rails/hip) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method `empty?'' for nil:NilClass /usr/lib/ruby/1.8/erb.rb:469:in `scan''
2011 Jun 09
1
Rails 3.1 RC4 has broken migrations
Rails 3.1 RC4 has broken migrations $ jruby -v jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_24) [darwin-x86_64-java] $ jruby -S rails -v Rails 3.1.0.rc4 $ jruby -S rails new myapp -d jdbcpostgresql [...] $jruby -S rake db:create [...] $ jruby -S rails g model user name:string invoke active_record create
2011 May 11
2
rack problems
I''m having some issues running rake commands for puppet dashboard. Here is one of the symptoms (see below). I''m a little new to setting up rails/rack applications, so I may be making a common mistake. It looks like gems are already packaged with dashboard, specifically rack-1.01. Should that gem just work out of the box? Command: rake RAILS_ENV=production reports:prune upto=1
2008 Nov 30
11
rake aborted! undefined method `each' for #<Mysql:
I''m struggling with several problems getting my first time ruby on rails environment running. I''m now stuck on this problem too. rake db:migrate generates the following error. This one is on a vista machine. Anyone seen this before. Any thoughts or advice? Reading about Ruby on Rails has really got me excited to give it a try. But in practice getting to the point that I can
2009 May 25
2
CAn u please tell wats the prob in runnning my project?
[~/kallori]# rake db:migrate (in /home/gm/kallori) no such file to load -- hmac-sha1 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /home/gm/kallori/vendor/rails/activesupport/lib/active_support/ dependencies.rb:510:in `require''
2012 May 14
1
undefined method `parse' for String:Class
Hi, I use a script called : add_admin.rake When i execute this : ''rake -s -f Rakefile mailserv:add_admin --trace i have this error : ** Invoke mailserv:add_admin (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute mailserv:add_admin rake aborted! undefined method `parse'' for String:Class
2011 May 15
0
Upgrading to Rails 3.1
I''m working on updating my rails 3.0.5 app to rails 3.1.0.beta1 and I seem to be running into a problem when doing `rake rails:update` when it runs `rake rails:update:javascripts` Here is my bundle: Gems included by the bundle: * RedCloth (4.2.7) * actionmailer (3.1.0.beta1) * actionpack (3.1.0.beta1) * activemodel (3.1.0.beta1) * activerecord (3.1.0.beta1) * activeresource
2010 Feb 27
1
Cannot migrate DB due to "getaddrinfo: Name or service not known"
I am using Rails 2.2.2 and try to do a DB migration, but got the following error. I am using Centos 5.4. Can someone give me a clue? >> rake db:migrate RAILS_ENV="production" rake aborted! getaddrinfo: Name or service not known (See full trace by running task with --trace) [current]$ rake db:migrate RAILS_ENV="production" --trace ** Invoke db:migrate (first_time) **
2010 Aug 23
1
Cannot migrate database, strange error!
Im using restful authentication, and i changed the username model from login to username. The error is Mysql::Error: Key column ''login'' doesn''t exist in table: CREATE UNIQUE INDEX `index_users_on_login` Heres the trace: DEPRECATION WARNING: Rake tasks in vendor/plugins/restful-authentication/tasks are deprecated. Use lib/tasks instead. (called from