Sha256: e6f7e64bd2cf3d89b7a36f87ca49aa3d8d940faf7317cd85d0777d6e93e3ad94

Contents?: true

Size: 338 Bytes

Versions: 35

Compression:

Stored size: 338 Bytes

Contents

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

35 entries across 35 versions & 3 rubygems

Version Path
spree_core-1.2.5 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.1.6 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.1.5 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.2.4 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.0.7 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.2.3 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.2.2 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.1.4 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.2.0 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.2.0.rc2 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.2.0.rc1 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.1.3 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.0.6 db/migrate/20100506185838_add_description_to_taxons.rb
spree_pag_seguro-1.0.7 spec/dummy/db/migrate/20120301154093_add_description_to_taxons.rb
spree_core-1.1.2 db/migrate/20100506185838_add_description_to_taxons.rb
spree_core-1.1.2.rc1 db/migrate/20100506185838_add_description_to_taxons.rb
spree_pag_seguro-1.0.6 spec/dummy/db/migrate/20120301154093_add_description_to_taxons.rb
spree_pag_seguro-1.0.5 spec/dummy/db/migrate/20120301154093_add_description_to_taxons.rb
spree_pag_seguro-1.0.4 spec/dummy/db/migrate/20120301154093_add_description_to_taxons.rb
spree_core-1.1.1 db/migrate/20100506185838_add_description_to_taxons.rb