Sha256: 1dac62f246db05208fe485c81ac9e29bfd3725934dd9940eaac6d3bfc60d2415

Contents?: true

Size: 345 Bytes

Versions: 16

Compression:

Stored size: 345 Bytes

Contents

class AddDescriptionToTaxons < ActiveRecord::Migration
    def self.up
      # skip this migration if the attribute already exists because of advanced taxon extension
      return if Taxon.new.respond_to? :description
      add_column :taxons, :description, :text
    end

    def self.down
      remove_column :taxons, :description
    end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
spree-0.11.4 db/migrate/20100506185838_add_description_to_taxons.rb
spree-0.11.3 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-0.30.2 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-0.40.4 db/migrate/20100506185838_add_description_to_taxons.rb
spree_essential_press-0.1.0.pre3 test/dummy/db/migrate/20100506185838_add_description_to_taxons.rb
spree_essential_press-0.1.0.pre2 test/dummy/db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-0.40.3 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-0.40.2 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-0.40.1 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-0.40.0 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-0.30.1 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-0.30.0 db/migrate/20100506185838_add_description_to_taxons.rb
spree-0.11.2 db/migrate/20100506185838_add_description_to_taxons.rb
spree-0.11.1 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-0.30.0.beta1 lib/generators/templates/db/migrate/20100506185838_add_description_to_taxons.rb
spree-0.11.0 db/migrate/20100506185838_add_description_to_taxons.rb