Sha256: ef4df3fa3e57ab93677ecce7f87473f3c699d99cee732604aaebb6490bb02eda

Contents?: true

Size: 348 Bytes

Versions: 45

Compression:

Stored size: 348 Bytes

Contents

class AddDescriptionToTaxons < ActiveRecord::Migration
    def self.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 self.down
      remove_column :taxons, :description
    end
end

Version data entries

45 entries across 33 versions & 8 rubygems

Version Path
spree_core-0.70.7 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-0.70.6 db/migrate/20100506185838_add_description_to_taxons.rb
apispree_core-0.0.0 db/migrate/20100506185838_add_description_to_taxons.rb
My-Commerce_core-1.1.0 db/migrate/20100506185838_add_description_to_taxons.rb
My-Commerce_core-1.0.0 db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerceapi-1.0.0 core/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerceapi-1.0.0 dash/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerceapi-1.0.0 api/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerceapi-1.0.0 sandbox/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerceapi-1.0.0 auth/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerceapi-1.0.0 core/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerceapi-1.0.0 promo/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerce-0.0.3 sandbox/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerce-0.0.3 api/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerce-0.0.3 auth/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerce-0.0.3 core/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerce-0.0.3 dash/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerce-0.0.3 promo/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb
MyCommerce-0.0.3 core/db/migrate/20100506185838_add_description_to_taxons.rb
rfcommerce_sandbox-0.0.3 db/migrate/20100506185838_add_description_to_taxons.rb