Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3: Create seed data from development database

Is there a gem or a easy way to take the data from my Development DB and populate the seed.rb file in Rails 3?

like image 304
kkampen Avatar asked Feb 16 '11 09:02

kkampen


2 Answers

There is also seed_dumper which creates a seed file for you.

like image 154
james2m Avatar answered Nov 12 '22 18:11

james2m


In the past I successfully used YamlDb.

like image 32
Simone Carletti Avatar answered Nov 12 '22 17:11

Simone Carletti