Sha256: 5acc8030c003247a66e1932118e27f878e1f63c5af35c49724bead2e571ded8d

Contents?: true

Size: 715 Bytes

Versions: 2

Compression:

Stored size: 715 Bytes

Contents

# This migration comes from spree (originally 20151124062500)
class ConvertHabtmToHmtForOptionTypePrototypes < ActiveRecord::Migration
  def up
    add_column :spree_option_types_prototypes, :id, :primary_key
    add_column :spree_option_types_prototypes, :created_at, :datetime
    add_column :spree_option_types_prototypes, :updated_at, :datetime

    rename_table :spree_option_types_prototypes, :spree_option_type_prototypes
  end

  def down
    remove_column :spree_option_types_prototypes, :id
    remove_column :spree_option_types_prototypes, :created_at
    remove_column :spree_option_types_prototypes, :updated_at

    rename_table :spree_option_type_prototypes, :spree_option_types_prototypes
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103628_convert_habtm_to_hmt_for_option_type_prototypes.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112580_convert_habtm_to_hmt_for_option_type_prototypes.spree.rb