I\'m writing my first Rails app. I\'ve run a few rails generate model ...
and rake db:migrate
commands, but I now want to change my data model and
This is what worked for me. Combine the steps given in this answer and comment by dB.
rake db:migrate:status
****NO FILE****
entry, just note the version number as noFileVersion. Note the version of the entry just above no file entry(stable_version).noFileVersion_create_nothing.rb
, and body class CreateNothing < ActiveRecord::Migration
def change
end
end
rake db:migrate VERSION=stable_version
noFileVersion_create_nothing.rb
manually.rake db:migrate
.rake db:migrate:status
again to check if No file entry has disappeared.