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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -