18 lines
566 B
Ruby
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
|