Create a new migration through the console with:
rails g migration add_amount_to_items
This should create a migration something like this:
class AddAmountToItems < ActiveRecord::Migration def change # add_column table_name, :column_name, :column_type add_column :items, :amount, :integer end end
adimitri
source share