Sha256: 42e5656cec7ba617af4e0587c89441945442af2af69498944e93d4fab55970f8

Contents?: true

Size: 657 Bytes

Versions: 61

Compression:

Stored size: 657 Bytes

Contents

class AddIconToTaxons < ActiveRecord::Migration
    def self.up
      # skip this migration if the attribute already exists because of advanced taxon extension
      return if Taxon.new.respond_to? :icon_file_name
      add_column :taxons, :icon_file_name,    :string
      add_column :taxons, :icon_content_type, :string
      add_column :taxons, :icon_file_size,    :integer
      add_column :taxons, :icon_updated_at,   :datetime
    end

    def self.down
      remove_column :taxons, :icon_file_name
      remove_column :taxons, :icon_content_type
      remove_column :taxons, :icon_file_size
      remove_column :taxons, :icon_updated_at
    end

end

Version data entries

61 entries across 49 versions & 10 rubygems

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