debian-mirror-gitlab/db/migrate/20210826171758_init_schema.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
283 B
Ruby
Raw Normal View History

2019-09-30 21:07:59 +05:30
# frozen_string_literal: true
2020-06-23 00:09:42 +05:30
class InitSchema < ActiveRecord::Migration[6.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