Commit 3d1c948ffe1f8068fd55ee79352cd6c016f9761d
1 parent
81ecee71
Exists in
master
and in
20 other branches
environment_notification: shorten index name (fix migration)
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb
@@ -14,9 +14,11 @@ class CreateNotificationTable < ActiveRecord::Migration | @@ -14,9 +14,11 @@ class CreateNotificationTable < ActiveRecord::Migration | ||
14 | end | 14 | end |
15 | 15 | ||
16 | create_table :environment_notifications_users, id: false do |t| | 16 | create_table :environment_notifications_users, id: false do |t| |
17 | - t.belongs_to :environment_notification, index: true | ||
18 | - t.belongs_to :user, index: true | 17 | + t.belongs_to :environment_notification |
18 | + t.belongs_to :user | ||
19 | end | 19 | end |
20 | + add_index :environment_notifications_users, [:environment_notification_id], name: :index_Zaem6uuw | ||
21 | + add_index :environment_notifications_users, [:user_id], name: :index_ap3nohR9 | ||
20 | end | 22 | end |
21 | 23 | ||
22 | def down | 24 | def down |