foodsoft/db/migrate/20121112093327_add_created_...

10 lines
212 B
Ruby

class AddCreatedByUserIdToOrders < ActiveRecord::Migration[4.2]
def self.up
add_column :orders, :created_by_user_id, :integer
end
def self.down
remove_column :orders, :created_by_user_id
end
end