Sha256: 17500d32f6054573d58af63172c0b96e95cee7dc893060f34422db2e6f0b4ea2

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

# rubocop:disable Rails/CreateTableWithTimestamps
class CreateReportKeywords < ActiveRecord::Migration[6.0]
  def change
    create_table :report_keywords do |t|
      t.string :name, null: false, index: { unique: true }
    end

    add_column :host_reports, :report_keyword_ids, :integer, array: true, default: []
    add_index :host_reports, :report_keyword_ids, using: 'gin'
  end
end
# rubocop:enable Rails/CreateTableWithTimestamps

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_host_reports-1.0.2 db/migrate/20210616133601_create_report_keywords.rb
foreman_host_reports-1.0.1 db/migrate/20210616133601_create_report_keywords.rb
foreman_host_reports-1.0.0 db/migrate/20210616133601_create_report_keywords.rb
foreman_host_reports-0.0.4 db/migrate/20210616133601_create_report_keywords.rb
foreman_host_reports-0.0.3 db/migrate/20210616133601_create_report_keywords.rb