Is there an easy way to run a single migration? I don\'t want to migrate to a certain version I just want to run a specific one.
This are the steps to run again this migration file "20150927161307_create_users.rb"
Copy and past the class which is in that file to the console.
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :name
t.string :email
t.timestamps null: false end
end
end
end
Create an instance of the class CreateUsers: c1 = CreateUsers.new
change of that instance: c1.change