summaryrefslogtreecommitdiff
path: root/db/migrate/20200402185044_create_clusters_applications_fluentd.rb
blob: 08f3faf80e118651496669a8dfc4af26e0d4dede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class CreateClustersApplicationsFluentd < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  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
      t.text :status_reason
    end
  end
end