ruby on rails 3 - Seedbank, nothing happens when doing rake db:seed anymore -


i installed seedbank gem : https://github.com/james2m/seedbank exactly looking for! (i'm surprised kind of feature not in core rails, anyway, james2m)

my problem is, nothing happens when doing rake db:seed -v. not former seeds.rb generation.

i guess best place report issue.

i don't know information useful me, here go, without order:

1- content of /db:

/db  | candidate.seeds.rb  | item.seeds.rb  | seeds.rb  | user.seeds.rb 

2- gem file extract

source 'https://rubygems.org'  gem 'rails', '3.2.13' gem "seedbank", "~> 0.2.1" 

and i've run bundle install no error.

3- version numbers

$ rails -v rails 3.2.13 $ rake -v rake, version 10.0.4 

thanks in advance help.

not sure if sorted out or not think directory structure was/is incorrect

/db/seeds.rb    (runs on environments)  /db/seeds/candidate.seeds.rb /db/seeds/item.seeds.rb /db/seeds/user.seeds.rb 

these run environments. if want development structure instead

/db/seeds.rb  (runs on environments)    /db/seeds/development/candidate.seeds.rb /db/seeds/development/item.seeds.rb /db/seeds/development/user.seeds.rb 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -