similar to: A (hopefully...) quick rake db:migrate question...

Displaying 20 results from an estimated 20000 matches similar to: "A (hopefully...) quick rake db:migrate question..."

2006 Nov 16
4
rake db:migrate problem
I am just starting out learning RoR. I am trying to follow along with the Depot project in "Agile Web Development With Rails ed2" and get the error "You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.[]" I ran --trace and get the following, but I am not sure what it means. Can
2013 Feb 28
0
Rake tasks db:test:prepare cannot be executed in the same task of db:reset or db:migrate
Hey all, I''m trying to create a task that prepare the environment to start programming. To do so, I created a task like this *task :setup_env => [''db:reset'', ''db:migrate'', ''db:test:prepare'']* and observed that after execute * rake setup_env*, it never execute db:test:prepare properly. In order to get the schema cloned to test db,
2007 Jan 21
6
rake db:migrate "undefined method `default'" error
Hi all, Just starting with Rails and working through the early chapters of the Pragmatic Programmers Agile Development with Rails book (2nd addition). When doing a "rake db:migrate" to add a column to a table I get this: undefined method `default'' for #<ActiveRecord::ConnectionAdapters::MysqlAdapter:0xb7517ec8> Any ideas? thanks, David PS: Here''s the full
2008 Jan 31
0
Rake Bug? db:create:all directs db:migrate to the test db..
Dear all, task ''test'' do Rake::Task[''db:create:all''].invoke Rake::Task[''db:migrate''].invoke end Did I miss something or what? Turns out that this simple task would have migration done in the test db. I''ve tried to "puts RAILS_ENV" inbetween and it shows "development", but migration''s still done in
2009 Jul 09
2
rake db:migrate confusion following Cucumber upgrade
I recently upgraded Cucumber gem from 0.1.16 to 0.3.11. I ran ruby script/generate cucumber. When I ran rake features I received an error telling me I had pending migrations and should run rake db:migrate. I ran rake db:migrate despite fact that my db is up to date. I was confused that the migrations ran from the beginning. However the migrations seem to have no effect on my database.
2008 Jun 09
0
Error when executing "rake db:migrate" with frozen Rails 2.1.0 on Media Temple
I''m hoping someone might have some insight into this, because I don''t quite know how to figure this one out. I''m running the command with Capistrano''s deploy:migrate to my (mt) Media Temple (gs) Grid Server, but I get the same error (from "rake aborted!" and on below) when I run "rake db:migrate" directly on the server in the
2006 Jul 25
3
create production tables? use "rake db:migrate"?
Hi, What is the normal mechanism for creating the tables in the (a) test and (b) production databases. For example the following didn''t work for creating the production tables: a) change environment.rb to include "ENV[''RAILS_ENV''] ||= ''production''" b) run "rake db:migrate" However this seemed to still work against DEV not
2010 Feb 22
0
Re: rake db:migrate throws unexpected error
danwoods wrote: > The Error: > (in [my current directory]) > rake aborted! > undefined method `symbolize_keys'' for nil:NilClass Given that nil does not implement symbolize_keys you need to know where you''re ending up with a nil. Have your run your rake task with the --trace option to see if you get a backtrace that will show you where to look? rake --trace
2013 Feb 01
0
rake db:migrate failing against oracle
Hello All -- I am using jruby 1.6.7.2 with rails 3.2.11 to create a brown bag for several other developers. I cannot get the migration to work to save my life... In my database yaml file I have the following: --- development: adapter: jdbc driver: oracle.jdbc.driver.OracleDriver url: jdbc:oracle:thin:@localhost:1521:xe username: brownbag password: brownbag pool: 500 --- When I run:
2006 Oct 10
4
rake migrate -- which db affected?
Dumb question, but when you do ''rake migrate'', which database is affected (e.g. test, development, or production)? Is there a way to target a specific one? Thanks, Joe -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2006 May 08
4
rake db:migrate
Would it make sense for rake db:migrate to support creating databases if it is not found, with blessing from user to prevent typos, or as an additional command line switch. Or am I just being too lazy? -- Posted via http://www.ruby-forum.com/.
2007 Jan 11
3
rake db:migrate doesn't work anymore
Hi! Up to now, i had no problems with my migrations and rake (rake db:migrate). Today, i got a project from a svn repository, but i can''t do "rake db:migrate": "rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in `load_rakefile'' (See full trace by running task
2006 Apr 23
1
rake db:migrate error: uninitialized constant mysql
Hello, When I run: rake db:migrate , I get the "uninitialized constant mysql" error. I issue the command inside the root of the application InPlaceEditing, a recipe from Chad Fowler''s Rails Recipes. The InPlaceEditing application is inside the directory: c:\instantrails\rails_apps\InPlaceEditing I can run the InstantRails Cookbook tutorial, no problem, so MySql itself is
2006 Nov 23
0
Ruby on Rails -Rake db:migrate not functioning
I am havin a major problem, After making an application in ruby n rails, Whn i try to RAKE DB:MIGRATE through command, The rake does not function all it does is stays blank all day long, I am using MYSQL 5. Previously i thought this was a problem with my windows, so i reinstalled, It worked fien for 2 days then later, i had the same problem, can you guys please help me out. Any help will be much
2009 Mar 03
0
rake db:migrate not saving latest version #
Howdy, I''m having some trouble migrating. From a fresh db, rake db:migrate runs successfully, with no errors. The tasks in the latest migration are performed with no problem. However, the latest version # is not saved in the schema_migrations table. All other version numbers are. Subsequent rake db:migrate cause errors because columns/tables already exist. I''ve tried
2008 Sep 13
2
rake db:migrate caues BSOD (Blue Screen of Death) on Vista
I''m running latest RoR/Ruby/MySQL 5... I can reproduce at will. Any idea how rake db:migrate could cause Vista to crash? Pete REF: Windows Vista Home Premium (SP1), 2MB RAM, Dell Inspiron 1501 Ruby 1.8.6, Installer 186-26 MySQL 5 MySQL Connector Net 5.2.2 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because
2008 Apr 02
1
Error in my_thread_global_end() when running rake db:migrate
When I run rake db:migrate I get this error at the end. Error in my_thread_global_end(): 1 threads didn''t exit I pinned it down to this code which is in 004_create_permissions.rb. # create admin user user = User.new user.login = ''admin'' user.password = ''password'' user.save(false) If I don''t run user.save(false) I
2010 Aug 09
0
MySQL rake db:migrate gives me dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Hi When I do a "rake db:migrate", I get the following error: ---- (in /Users/sneigaard/work/rails/mailtimer) dyld: lazy symbol binding failed: Symbol not found: _mysql_init Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/lib/ mysql_api.bundle Expected in: flat namespace dyld: Symbol not found: _mysql_init Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/lib/
2007 Jul 01
0
image not found -- rake db:migrate
Hi. I''m learning from the book ''beginning ruby on rails e-commerce'', and i just got to the point of running my first migration. When I run rake db:migrate (as it says in the book), I see this: ------------------------------------- (in /Users/me/dev/myapps/emporium/emporium) dyld: NSLinkModule() error dyld: Library not loaded:
2011 Nov 01
1
rake db:migrate aborted
I''m reading the rails tutorial book and in chapter 6 page 199 I have to make a rake db:migrate, but I get this error: rake aborted! undefined method `prerequisites'' for nil:NilClass (See full trace by running task with --trace) When I try with rake db:migrate --trace I get the following errors: rake aborted! undefined method `prerequisites'' for nil:NilClass