I have really stupid problem with rake db:seed.
I created couple of users and seed a database with rake db:seed. When I visit my app, all users are doubled! Obviously I run rake db:reset before every attempt to seed. I restarted served. What's happening?
By default, rake db:reset will also run db:seed, so there's no need to run both commands.
rake db:reset
db:seed
This article describes the full list of db: rake commands, which you might find helpful for future reference.
db:
- - , .
برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 4 اسفند 1394 ساعت: 22:19