summaryrefslogtreecommitdiff
path: root/db/migrate/20160328112808_create_notification_settings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20160328112808_create_notification_settings.rb')
-rw-r--r--db/migrate/20160328112808_create_notification_settings.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20160328112808_create_notification_settings.rb b/db/migrate/20160328112808_create_notification_settings.rb
new file mode 100644
index 00000000000..4755da8b806
--- /dev/null
+++ b/db/migrate/20160328112808_create_notification_settings.rb
@@ -0,0 +1,11 @@
+class CreateNotificationSettings < ActiveRecord::Migration
+ def change
+ create_table :notification_settings do |t|
+ t.references :user, null: false
+ t.references :source, polymorphic: true, null: false
+ t.integer :level, default: 0, null: false
+
+ t.timestamps null: false
+ end
+ end
+end