Sha256: 3cfa0ac145a0ebe8721ab14406ef607acdce3f469442f3fa0ab90710d2e75968

Contents?: true

Size: 371 Bytes

Versions: 6

Compression:

Stored size: 371 Bytes

Contents

class CreateDdrAlertsMessageContexts < ActiveRecord::Migration
  def up
    unless table_exists?("ddr_alerts_message_contexts")
      create_table "ddr_alerts_message_contexts" do |t|
        t.belongs_to "message", index: true
        t.string     "context"
        t.timestamps
      end
    end
  end

  def down
    raise ActiveRecord::IrreversibleMigration
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ddr-alerts-1.1.0 db/migrate/20141215161516_create_ddr_alerts_message_contexts.rb
ddr-alerts-1.1.0.rc1 db/migrate/20141215161516_create_ddr_alerts_message_contexts.rb
ddr-alerts-1.0.0 db/migrate/20141215161516_create_ddr_alerts_message_contexts.rb
ddr-alerts-0.3.0 db/migrate/20141215161516_create_ddr_alerts_message_contexts.rb
ddr-alerts-0.2.0 db/migrate/20141215161516_create_ddr_alerts_message_contexts.rb
ddr-alerts-0.1.1 db/migrate/20141215161516_create_ddr_alerts_message_contexts.rb