2019-09-30 21:07:59 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-06-20 00:43:36 +05:30
|
|
|
class InitSchema < Gitlab::Database::Migration[1.0]
|
2019-09-30 21:07:59 +05:30
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
2023-03-17 16:20:25 +05:30
|
|
|
execute(File.read("db/init_structure.sql"))
|
2019-09-30 21:07:59 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2023-03-17 16:20:25 +05:30
|
|
|
raise ActiveRecord::IrreversibleMigration, "The initial migration is not able to be reverted."
|
2019-09-30 21:07:59 +05:30
|
|
|
end
|
|
|
|
end
|