debian-mirror-gitlab/db/migrate/20200615234047_create_clusters_applications_cilium.rb
2020-08-09 17:41:57 +05:30

14 lines
470 B
Ruby

# frozen_string_literal: true
class CreateClustersApplicationsCilium < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
create_table :clusters_applications_cilium do |t|
t.references :cluster, null: false, index: { unique: true }, foreign_key: { on_delete: :cascade }
t.timestamps_with_timezone null: false
t.integer :status, null: false
t.text :status_reason # rubocop:disable Migration/AddLimitToTextColumns
end
end
end