2020-04-07 20:09:30 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class CreateClustersApplicationsFluentd < ActiveRecord::Migration[6.0]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2020-04-21 11:21:10 -04:00
|
|
|
# rubocop:disable Migration/PreventStrings
|
2020-04-07 20:09:30 -04:00
|
|
|
def change
|
|
|
|
create_table :clusters_applications_fluentd do |t|
|
|
|
|
t.integer :protocol, null: false, limit: 2
|
|
|
|
t.integer :status, null: false
|
|
|
|
t.integer :port, null: false
|
|
|
|
t.references :cluster, null: false, index: { unique: true }, foreign_key: { on_delete: :cascade }
|
|
|
|
t.timestamps_with_timezone null: false
|
|
|
|
t.string :version, null: false, limit: 255
|
|
|
|
t.string :host, null: false, limit: 255
|
2020-04-21 11:21:10 -04:00
|
|
|
t.text :status_reason # rubocop:disable Migration/AddLimitToTextColumns
|
2020-04-07 20:09:30 -04:00
|
|
|
end
|
|
|
|
end
|
2020-04-21 11:21:10 -04:00
|
|
|
# rubocop:enable Migration/PreventStrings
|
2020-04-07 20:09:30 -04:00
|
|
|
end
|