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