mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 13:17:20 -05:00
Rename the PK index to support table rename
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user