开发者

Can't figure out how to use db:seed for rails in netbeans

开发者 https://www.devze.com 2022-12-26 19:16 出处:网络
can\'t seem to get my seeds.rb file to run through the command \"rake db:seed\". I\'m using netbeans and I\'m a beginner to rails, so I could be doing something really simple and stupid =/. I know you

can't seem to get my seeds.rb file to run through the command "rake db:seed". I'm using netbeans and I'm a beginner to rails, so I could be doing something really simple and stupid =/. I know you're m开发者_运维知识库eant to put your seeds.rb file in the db directory but netbeans doesn't seem to have one or might have renamed it... any help out there?


The rake task db:seed will load the Rails environment and then load and execute the file db/seeds.rb.

If you do not have a file db/seeds.rb, then make one (and if necessary make the db directory too).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号