2019-07-01 13:31:01 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-06-03 12:08:21 +00:00
|
|
|
class InitSchema < ActiveRecord::Migration[6.0]
|
2019-07-01 13:31:01 +00:00
|
|
|
DOWNTIME = false
|
|
|
|
|
2019-07-01 11:23:25 +00:00
|
|
|
def up
|
2021-10-18 12:13:41 +00:00
|
|
|
execute(IO.read("db/init_structure.sql"))
|
2019-07-01 11:23:25 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
raise ActiveRecord::IrreversibleMigration, "The initial migration is not revertable"
|
|
|
|
end
|
|
|
|
end
|