Sha256: eab7a62e6a9a8be33cf659155774357054e435ed70304f06387731722db1da8b

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 Bytes

Contents

# This migration comes from spree (originally 20151117063249)
class ConvertHabtmToHmtForPropertiesPrototypes < ActiveRecord::Migration
  def up
    add_column :spree_properties_prototypes, :id, :primary_key
    add_column :spree_properties_prototypes, :created_at, :datetime
    add_column :spree_properties_prototypes, :updated_at, :datetime

    rename_table :spree_properties_prototypes, :spree_property_prototypes
  end

  def down
    rename_table :spree_property_prototypes, :spree_properties_prototypes

    remove_column :spree_properties_prototypes, :id, :primary_key
    remove_column :spree_properties_prototypes, :created_at, :datetime
    remove_column :spree_properties_prototypes, :updated_at, :datetime
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103627_convert_habtm_to_hmt_for_properties_prototypes.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112579_convert_habtm_to_hmt_for_properties_prototypes.spree.rb