Sha256: ba7e32c7f926f2ec74a6eb9b7bbff0b30fda381241d0d737f906885ceb65ec14

Contents?: true

Size: 672 Bytes

Versions: 21

Compression:

Stored size: 672 Bytes

Contents

class ConvertHabtmToHmtForPropertiesPrototypes < ActiveRecord::Migration[4.2]
  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

21 entries across 21 versions & 1 rubygems

Version Path
solidus_core-2.0.0.beta1 db/migrate/20151117063249_convert_habtm_to_hmt_for_properties_prototypes.rb