rosa-build/db/migrate/20111226141947_create_subsc...

16 lines
307 B
Ruby

# -*- encoding : utf-8 -*-
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