2016-03-28 07:41:00 -04:00
|
|
|
class CreateNotificationSettings < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :notification_settings do |t|
|
2016-03-28 17:39:49 -04:00
|
|
|
t.references :user, null: false
|
|
|
|
t.references :source, polymorphic: true, null: false
|
|
|
|
t.integer :level, default: 0, null: false
|
2016-03-28 07:41:00 -04:00
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|