Seed.rb in Ruby on Rails for creating database

206 Views Asked by At

I have two classes: Article(has_many comments) and Comment(belongs_to article). My database is empty, postgresql. I need download information in db from seeds.yml using seed.rb. Code in seeds.rb must contain class HashWithIndifferentAccess. I'm newbie in RoR and I cannot find some good information about it.

0

There are 0 best solutions below