Sha256: c31ed2c2257c7a9788c0947cc36551e0f6a1a8cf44f2fad92e33a088184195e9

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

class CreateChargeTypes < ActiveRecord::Migration
  def up
    unless table_exists?(:charge_types)
      create_table :charge_types do |t|
        t.string :description
        t.string :internal_identifier

        t.timestamps
      end
    end
  end

  def down
    if table_exists?(:charge_types)
      drop_table :charge_types
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
erp_orders-4.2.0 db/migrate/20150309004440_create_charge_types.rb