Sha256: 84d60b26cadc19e51fb2c983b1aecb1b7be1537206bcbc333131c85420bedd27

Contents?: true

Size: 513 Bytes

Versions: 9

Compression:

Stored size: 513 Bytes

Contents

major, minor, _ = Rails.version.split('.').map(&:to_i)
migration_class = (major > 5 || major == 5 && minor >= 1) ? ActiveRecord::Migration[4.2] : ActiveRecord::Migration

class CreateAdhoqReports < migration_class
  def change
    create_table :adhoq_reports do |t|
      t.belongs_to :execution,    null: false, index: true
      t.string     :identifier,   null: false
      t.time       :generated_at, null: false
      t.string     :storage,      null: false

      t.timestamps null: false
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
adhoq-1.0.2 db/migrate/20141007052308_create_adhoq_reports.rb
adhoq-1.0.1 db/migrate/20141007052308_create_adhoq_reports.rb
adhoq-1.0.0 db/migrate/20141007052308_create_adhoq_reports.rb
adhoq-0.5.0 db/migrate/20141007052308_create_adhoq_reports.rb
adhoq-0.5.0.beta1 db/migrate/20141007052308_create_adhoq_reports.rb
adhoq-0.4.0 db/migrate/20141007052308_create_adhoq_reports.rb
adhoq-0.3.0 db/migrate/20141007052308_create_adhoq_reports.rb
adhoq-0.2.0 db/migrate/20141007052308_create_adhoq_reports.rb
adhoq-0.1.2 db/migrate/20141007052308_create_adhoq_reports.rb