Add migration with rails
Adding empty migrations is often used task when working on your database model. Migrations are used to apply sequantually database changes to the database.
> rails generate migration AddNewField
This migration command line will produce the following migration file
class AddNewField < ActiveRecord::Migration
def change
add_column :target_table, :target_field, :integer
end
end
Don't forget to run
> rake db:migrate
This rake command will push changes to your RDBMs used in Rails application.