2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-12-26 15:48:57 +00:00
|
|
|
class CreateSubscribes < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :subscribes do |t|
|
|
|
|
t.integer :subscribeable_id
|
|
|
|
t.string :subscribeable_type
|
|
|
|
t.integer :user_id
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :subscribes
|
|
|
|
end
|
|
|
|
end
|