我想要一种全面查看的方法:
1. what's going on in my database
2. what the schema looks like
有没有一个好的工具可以让你做到这一点?
我想要一种全面查看的方法:
1. what's going on in my database
2. what the schema looks like
有没有一个好的工具可以让你做到这一点?
有一个 gem Active Admin 可以让你这样做:http ://activeadmin.info/documentation.html
当然,您可以使用任何其他允许您连接到数据库的管理工具,例如 Squirrel http://squirrel-sql.sourceforge.net/,它连接到各种 sql 数据库,其中包括 sqlite。
对于开发和测试,我想说了解数据的首选方法是使用 FactoryGirl 或 Faker 等工具自动生成数据,并查看 schema.rb 的架构。