Commit 01aebadf by Tran Hoang Viet

VietTH: Merge from develop to vietth_feat_user_management

parents f9bdb5f9 d1b9f8b7
class AddContraintsToProducts < ActiveRecord::Migration
def up
change_column :products, :title, :string, null: false
change_column :products, :category_id, :integer, index: true, null: false
end
def down
change_column :products, :title, :string
change_column :products, :category_id, :integer, index: true
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment