summaryrefslogtreecommitdiff
path: root/db/migrate/20230111174113_create_airflow_dags.rb
blob: 798acadd790433ab16cfc0258a86ea0fd3aa83bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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