Sha256: ca1182635efbb2c0a8386958ce0219801d7fa87409de9c3714d67a943f648b7c

Contents?: true

Size: 581 Bytes

Versions: 10

Compression:

Stored size: 581 Bytes

Contents

class CreateBeetleReporterReports < ActiveRecord::Migration[6.1]
  def change
    create_table :beetle_reporter_reports do |t|
      t.bigint :record_id
      t.string :record_type
      t.string :reason
      t.bigint :user_id
      t.bigint :user_ids, array: true, default: []
      t.string :reasons, array: true, default: []
      t.integer :reported_count, default: 0
      t.string :device_id
      t.string :aasm_state
      t.string :treatment_reason
      t.datetime :discarded_at

      t.timestamps
    end
    add_index :beetle_reporter_reports, :discarded_at
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
beetle_reporter-0.1.10 db/migrate/20211216073022_create_beetle_reporter_reports.rb
beetle_reporter-0.1.9 db/migrate/20211216073022_create_beetle_reporter_reports.rb
beetle_reporter-0.1.8 db/migrate/20211216073022_create_beetle_reporter_reports.rb
beetle_reporter-0.1.7 db/migrate/20211216073022_create_beetle_reporter_reports.rb
beetle_reporter-0.1.6 db/migrate/20211216073022_create_beetle_reporter_reports.rb
beetle_reporter-0.1.5 db/migrate/20211216073022_create_beetle_reporter_reports.rb
beetle_reporter-0.1.4 db/migrate/20211216073022_create_beetle_reporter_reports.rb
beetle_reporter-0.1.3 db/migrate/20211216073022_create_beetle_reporter_reports.rb
beetle_reporter-0.1.2 db/migrate/20211216073022_create_beetle_reporter_reports.rb
beetle_reporter-0.1.1 db/migrate/20211216073022_create_beetle_reporter_reports.rb