socialforge/db/migrate/20160108024752_create_shiel...

16 lines
312 B
Ruby
Raw Normal View History

class CreateShieldActivities < ActiveRecord::Migration
def up
create_table :shield_activities do |t|
t.string :container_type
t.integer :container_id
t.string :shield_type
t.integer :shield_id
t.timestamps
end
end
def down
drop_table :shield_activities
end
end