Commit 3f84e761a1422463335abf5c2069d0f724fe86f1

Authored by Marcos Pereira
1 parent 7ebec5a9
Exists in stable-spb-1.5

fix bug caused by old migration changes

plugins/admin_notifications/db/migrate/20160330171610_rename_plugin_tables.rb
1 class RenamePluginTables < ActiveRecord::Migration 1 class RenamePluginTables < ActiveRecord::Migration
2 def up 2 def up
3 - remove_index :environment_notifications_users, name: :index_Zaem6uuw  
4 - remove_index :environment_notifications_users, name: :index_ap3nohR9  
5 -  
6 rename_column :environment_notifications_users, :environment_notification_id, :notification_id 3 rename_column :environment_notifications_users, :environment_notification_id, :notification_id
7 4
8 rename_table :environment_notifications, :admin_notifications_plugin_notifications 5 rename_table :environment_notifications, :admin_notifications_plugin_notifications