diff --git a/db/migrate/20130801155107_rename_staff_action_pk.rb b/db/migrate/20130801155107_rename_staff_action_pk.rb deleted file mode 100644 index 8631731b3..000000000 --- a/db/migrate/20130801155107_rename_staff_action_pk.rb +++ /dev/null @@ -1,9 +0,0 @@ -class RenameStaffActionPk < ActiveRecord::Migration - def up - execute "ALTER INDEX admin_logs_pkey RENAME TO staff_action_logs_pkey" - end - - def down - execute "ALTER INDEX staff_action_logs_pkey RENAME TO admin_logs_pkey" - end -end diff --git a/db/migrate/20130910220317_rename_staff_action_logs_to_user_history.rb b/db/migrate/20130910220317_rename_staff_action_logs_to_user_history.rb index 781613310..e5163dd1e 100644 --- a/db/migrate/20130910220317_rename_staff_action_logs_to_user_history.rb +++ b/db/migrate/20130910220317_rename_staff_action_logs_to_user_history.rb @@ -3,7 +3,6 @@ class RenameStaffActionLogsToUserHistory < ActiveRecord::Migration remove_index :staff_action_logs, [:staff_user_id, :id] rename_table :staff_action_logs, :user_histories rename_column :user_histories, :staff_user_id, :acting_user_id - execute "ALTER INDEX staff_action_logs_pkey RENAME TO user_histories_pkey" add_index :user_histories, [:acting_user_id, :action, :id] end @@ -11,7 +10,6 @@ class RenameStaffActionLogsToUserHistory < ActiveRecord::Migration remove_index :user_histories, [:acting_user_id, :action, :id] rename_table :user_histories, :staff_action_logs rename_column :staff_action_logs, :acting_user_id, :staff_user_id - execute "ALTER INDEX user_histories_pkey RENAME TO staff_action_logs_pkey" add_index :staff_action_logs, [:staff_user_id, :id] end end