Manually populate Rails databases -
is there rails way manually populate databases? can use postgresql sql inserts wondering if there rails way
well add create statemants db/seeds.rb
, run rake db:seed
product.create( [ { :price => 120.00, :item => "table" }, { :price => 49.99, :item => "chair" } ] )
Comments
Post a Comment