debian-mirror-gitlab/db/migrate/20230111174113_create_airflow_dags.rb
2023-04-23 21:23:45 +05:30

18 lines
566 B
Ruby

# frozen_string_literal: true
class CreateAirflowDags < Gitlab::Database::Migration[2.1]
enable_lock_retries!
def change
create_table :airflow_dags do |t|
t.references :project, index: true, foreign_key: { on_delete: :cascade }, null: false
t.timestamps_with_timezone null: false
t.datetime_with_timezone :next_run
t.boolean :has_import_errors
t.boolean :is_active
t.boolean :is_paused
t.text :dag_name, null: false, limit: 255
t.text :schedule, limit: 255
t.text :fileloc, limit: 255
end
end
end