Sha256: 6ce6e8c19509d239c12b8452f2e14eba46191ca12b9d7fdb10a329b52a486b75

Contents?: true

Size: 400 Bytes

Versions: 7

Compression:

Stored size: 400 Bytes

Contents

# This migration comes from spree (originally 20100506185838)
class AddDescriptionToTaxons < ActiveRecord::Migration
    def up
      # skip this migration if the attribute already exists because of advanced taxon extension
      return if column_exists?(:taxons, :description)
      add_column :taxons, :description, :text
    end

    def down
      remove_column :taxons, :description
    end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
spree_mercado_pago_payment_method-0.0.2 spec/dummy/db/migrate/20121121030180_add_description_to_taxons.spree.rb
spree_mercado_pago_payment_method-0.1.1 spec/dummy/db/migrate/20121121030180_add_description_to_taxons.spree.rb
spree_mercado_pago_payment_method-0.1.0 spec/dummy/db/migrate/20121121030180_add_description_to_taxons.spree.rb
datashift_spree-0.3.0 spec/sandbox/db/migrate/20121023154399_add_description_to_taxons.spree.rb
datashift_spree-0.2.1 spec/sandbox/db/migrate/20121015151192_add_description_to_taxons.spree.rb
datashift_spree-0.2.0 spec/sandbox/db/migrate/20120925192760_add_description_to_taxons.spree.rb
datashift_spree-0.1.0 spec/sandbox/db/migrate/20120918081491_add_description_to_taxons.spree.rb