[Git][noosfero/noosfero][master] environment_notification: shorten index name (fix migration)

Bráulio Bhavamitra gitlab at mg.gitlab.com
Sat Nov 21 10:42:13 BRST 2015


Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero


Commits:
3d1c948f by Braulio Bhavamitra at 2015-11-21T09:41:24Z
environment_notification: shorten index name (fix migration)

- - - - -


1 changed file:

- plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb


Changes:

=====================================
plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb
=====================================
--- a/plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb
+++ b/plugins/environment_notification/db/migrate/20150721132025_create_notification_table.rb
@@ -14,9 +14,11 @@ class CreateNotificationTable < ActiveRecord::Migration
     end
 
     create_table :environment_notifications_users, id: false do |t|
-      t.belongs_to :environment_notification, index: true
-      t.belongs_to :user, index: true
+      t.belongs_to :environment_notification
+      t.belongs_to :user
     end
+    add_index :environment_notifications_users, [:environment_notification_id], name: :index_Zaem6uuw
+    add_index :environment_notifications_users, [:user_id], name: :index_ap3nohR9
   end
 
   def down



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/3d1c948ffe1f8068fd55ee79352cd6c016f9761d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20151121/6b6cf9be/attachment.html>


More information about the Noosfero-dev mailing list