Files
tsemple/db/migrate/20140204164212_create_subscriptions.rb
2014-02-05 01:09:33 +08:00

12 lines
281 B
Ruby

class CreateSubscriptions < ActiveRecord::Migration
def change
create_table :subscriptions do |t|
t.belongs_to :user, index: true
t.belongs_to :subscribable, polymorphic: true, index: true
t.integer :status, default: 0
t.timestamps
end
end
end