debian-mirror-gitlab/db/migrate/20200615234047_create_clusters_applications_cilium.rb

15 lines
470 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# 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