Rename the PK index to support table rename

This commit is contained in:
Robin Ward 2013-08-01 11:57:06 -04:00
parent 361f158b27
commit 05fc50006d
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
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