Sha256: ec8199a43e0cffff139f52cfbae707294434d3fbc3ce5297c05b5afe6961dc4d

Contents?: true

Size: 560 Bytes

Versions: 9

Compression:

Stored size: 560 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 CreateAdhoqExecutions < migration_class
  def change
    create_table :adhoq_executions do |t|
      t.belongs_to :query,          null: false
      t.text       :raw_sql,        null: false
      t.string     :report_format,  null: false
      t.string     :status,         null: false, default: 'requested'
      t.text       :log

      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/20141006014750_create_adhoq_executions.rb
adhoq-1.0.1 db/migrate/20141006014750_create_adhoq_executions.rb
adhoq-1.0.0 db/migrate/20141006014750_create_adhoq_executions.rb
adhoq-0.5.0 db/migrate/20141006014750_create_adhoq_executions.rb
adhoq-0.5.0.beta1 db/migrate/20141006014750_create_adhoq_executions.rb
adhoq-0.4.0 db/migrate/20141006014750_create_adhoq_executions.rb
adhoq-0.3.0 db/migrate/20141006014750_create_adhoq_executions.rb
adhoq-0.2.0 db/migrate/20141006014750_create_adhoq_executions.rb
adhoq-0.1.2 db/migrate/20141006014750_create_adhoq_executions.rb