2011-12-26 15:48:57 +00:00
|
|
|
class CreateSubscribes < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :subscribes do |t|
|
2014-03-14 17:41:49 +00:00
|
|
|
t.integer :subscribeable_id, references: nil
|
2011-12-26 15:48:57 +00:00
|
|
|
t.string :subscribeable_type
|
|
|
|
t.integer :user_id
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :subscribes
|
|
|
|
end
|
|
|
|
end
|