18 lines
353 B
Ruby
18 lines
353 B
Ruby
class MigrateEverythingOutOfMirai < ActiveRecord::Migration[7.2]
|
|
def up
|
|
execute <<-SQL
|
|
ALTER TABLE ALL IN TABLESPACE mirai
|
|
SET tablespace pg_default;
|
|
SQL
|
|
|
|
execute <<-SQL
|
|
ALTER INDEX ALL IN TABLESPACE mirai
|
|
SET tablespace pg_default;
|
|
SQL
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|