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