Sha256: 75f94bd628db2d1d869172af933015933f6b862f14efcdb57212ff9641157bde

Contents?: true

Size: 344 Bytes

Versions: 6

Compression:

Stored size: 344 Bytes

Contents

class CreateDdrAlertsMessages < ActiveRecord::Migration
  def up
    unless table_exists?("ddr_alerts_messages")
      create_table "ddr_alerts_messages" do |t|
        t.text    "message"
        t.boolean "active", default: false
        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/20141215160128_create_ddr_alerts_messages.rb
ddr-alerts-1.1.0.rc1 db/migrate/20141215160128_create_ddr_alerts_messages.rb
ddr-alerts-1.0.0 db/migrate/20141215160128_create_ddr_alerts_messages.rb
ddr-alerts-0.3.0 db/migrate/20141215160128_create_ddr_alerts_messages.rb
ddr-alerts-0.2.0 db/migrate/20141215160128_create_ddr_alerts_messages.rb
ddr-alerts-0.1.1 db/migrate/20141215160128_create_ddr_alerts_messages.rb