我使用的是Ruby on Rails 3.0.9,我想为production database添加一些记录without re-building all the database(也就是说,不删除所有现有记录,只添加一些尚未存在的记录).我之所以这么做,是因为需要新的数据才能使应用程序正常运行.
因此,由于我正在使用Capistrano gem,我在控制台中运行cap -T
命令,以列出所有可用的命令,并了解如何实现我的目标:
$ cap -T
=> ...
=> cap deploy:seed # Reload the database with seed data.
=> ...
我不确定"用种子数据重新加载数据库"中的"重新加载"一词句子所以,我的问题是:if I run the 100 command in the console on my local machine will the seeding process delete all existing data in the production database and then populate it or will that command just add the new data in that database as I aim to do?