I have a simple rails app without dependencies (rails new example). Then I created a scaffold Student (rails g scaffold Student name:string). After, I run rake db:create and then rake db:migrate.
rake db:migrate returns nothing. It's not executing my migration, without no error on the screen. But, when I execute rake db:migrate VERSION=123456 the migration runs properly.
Do you have any idea what is happening with rake db:migrate without version? (I'm on MAC OS X)
thanks
VERSION=123456
doesn't make sense unless you have Student migration with this particular version number. – My Godrake db:migrate
executes nothing only when all the migrations are already run andrake db:migrate VERSION= 123456
executes the migration with this version number. – My Godcd new_app
after creating the Rails app? See your db/schema.rb file. What version number is shown there? Example:ActiveRecord::Schema.define(:version => 20130305185827)
. If everything else fails, do arm db/schema.rb
and migrate again. – Leonel Galán