tap/db/migrate/20141210200008_add_category_to_products.rb

6 lines
135 B
Ruby
Raw Normal View History

class AddCategoryToProducts < ActiveRecord::Migration
def change
add_column :products, :category, :integer, default: 0
end
end