Sha256: 7ed967c8f40ddb578adcb1935da273b8f6bd4e3eb66810825afe5c0e73dbabd8

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

Stored size: 565 Bytes

Contents

# This migration comes from spree (originally 20150826002555)
class ConvertHabtmToHmtForTaxonPrototypes < ActiveRecord::Migration
  def up
    add_column :spree_taxons_prototypes, :created_at, :datetime
    add_column :spree_taxons_prototypes, :updated_at, :datetime

    rename_table :spree_taxons_prototypes, :spree_prototype_taxons
  end

  def down
    rename_table :spree_prototype_taxons, :spree_taxons_prototypes

    remove_column :spree_taxons_prototypes, :created_at, :datetime
    remove_column :spree_taxons_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/20160707103619_convert_habtm_to_hmt_for_taxon_prototypes.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112571_convert_habtm_to_hmt_for_taxon_prototypes.spree.rb