Sha256: 9ca57a0cba3fcce9bde045e1dc42f2776cf2f97739b37eab8277e264c4efe853

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

class CreateCarrierTypeHasCheckoutTypes < ActiveRecord::Migration[5.1]
  def self.up
    create_table :carrier_type_has_checkout_types do |t|
      t.integer :carrier_type_id, null: false
      t.integer :checkout_type_id, null: false
      t.text :note
      t.integer :position

      t.timestamps
    end
    add_index :carrier_type_has_checkout_types, :carrier_type_id, name: 'index_carrier_type_has_checkout_types_on_m_form_id'
    add_index :carrier_type_has_checkout_types, :checkout_type_id
  end

  def self.down
    drop_table :carrier_type_has_checkout_types
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_seed-0.4.0.beta.1 spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb