1 数据库建好以后,需要增加新字段的经历 2 3 rails generate migration add_price_to_product price:decimal
rake db:migrate
1 数据库建好以后,需要增加新字段的经历 2 3 rails generate migration add_price_to_product price:decimal
rake db:migrate
转载于:https://www.cnblogs.com/lanboy/p/6674572.html