Sha256: 719e6b179e3285276f4ad4d808af594166d9ebb71aaee79e1d3ef5ce29ca0052

Contents?: true

Size: 421 Bytes

Versions: 20

Compression:

Stored size: 421 Bytes

Contents

class CreateTaxCategories < ActiveRecord::Migration
  def self.up
    create_table :tax_categories, :force => true do |t|
      t.string :name
      t.string :description
      t.timestamps
    end
    
    change_table :products do |t|
      t.references :tax_category
    end
    
  end

  def self.down
    drop_table :tax_categories
    change_table :products do |t|
      t.remove :tax_category_id
    end
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
kdmny-spree-0.0.1 db/migrate/20080707002329_create_tax_categories.rb
spree-enriquez-0.9.4 db/migrate/20080707002329_create_tax_categories.rb
spree-0.9.4 db/migrate/20080707002329_create_tax_categories.rb
spree-0.9.3 db/migrate/20080707002329_create_tax_categories.rb
spree-0.9.2 db/migrate/20080707002329_create_tax_categories.rb
spree-0.9.1 db/migrate/20080707002329_create_tax_categories.rb
spree-0.9.0 db/migrate/20080707002329_create_tax_categories.rb
spree-0.8.4 db/migrate/20080707002329_create_tax_categories.rb
spree-0.8.5 db/migrate/20080707002329_create_tax_categories.rb
spree-0.4.0 db/migrate/20080707002329_create_tax_categories.rb
spree-0.4.1 db/migrate/20080707002329_create_tax_categories.rb
spree-0.5.0 db/migrate/20080707002329_create_tax_categories.rb
spree-0.5.1 db/migrate/20080707002329_create_tax_categories.rb
spree-0.6.0 db/migrate/20080707002329_create_tax_categories.rb
spree-0.7.0 db/migrate/20080707002329_create_tax_categories.rb
spree-0.7.1 db/migrate/20080707002329_create_tax_categories.rb
spree-0.8.0 db/migrate/20080707002329_create_tax_categories.rb
spree-0.8.1 db/migrate/20080707002329_create_tax_categories.rb
spree-0.8.2 db/migrate/20080707002329_create_tax_categories.rb
spree-0.8.3 db/migrate/20080707002329_create_tax_categories.rb