Sha256: e8008405b74d403328711f749cd27f10908dfb15ffd9d1d40f9db4ec1fb538e3

Contents?: true

Size: 340 Bytes

Versions: 3

Compression:

Stored size: 340 Bytes

Contents

class RemoveNullOptionOfShipmentMethodIdOnComableShipments < ActiveRecord::Migration
  def change
    reversible do |dir|
      change_table :comable_shipments do |t|
        dir.up   { t.change :shipment_method_id, :integer, null: true }
        dir.down { t.change :shipment_method_id, :integer, null: false }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comable-core-0.7.1 db/migrate/20151013082845_remove_null_option_of_shipment_method_id_on_comable_shipments.rb
comable-core-0.7.0 db/migrate/20151013082845_remove_null_option_of_shipment_method_id_on_comable_shipments.rb
comable-core-0.7.0.beta2 db/migrate/20151013082845_remove_null_option_of_shipment_method_id_on_comable_shipments.rb