diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-03-28 15:27:30 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-03-30 11:44:20 +0300 |
commit | 73c5a3410596165244bfa3d2f657c313ec1c558c (patch) | |
tree | 6d2caec92dfe7c7e50bf42a108632410e3bd7a3f /db/migrate/20160328121138_add_notification_setting_index.rb | |
parent | 31b0e53015e38e51d9c02cca85c9279600b1bf85 (diff) |
Migrate notification setting from members table
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db/migrate/20160328121138_add_notification_setting_index.rb')
-rw-r--r-- | db/migrate/20160328121138_add_notification_setting_index.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20160328121138_add_notification_setting_index.rb b/db/migrate/20160328121138_add_notification_setting_index.rb new file mode 100644 index 00000000000..8aebce0244d --- /dev/null +++ b/db/migrate/20160328121138_add_notification_setting_index.rb @@ -0,0 +1,6 @@ +class AddNotificationSettingIndex < ActiveRecord::Migration + def change + add_index :notification_settings, :user_id + add_index :notification_settings, [:source_id, :source_type] + end +end |