ruby on rails - friendlyId won't work correctly -


im trying apply friendlyid gem onto rails app.

when have done

1 : installing gem, 2 : , this

bin/rails g friendly_id   create  db/migrate/20150220082838_create_friendly_id_slugs.rb   create  config/initializers/friendly_id.rb  bin/rake db:migrate 

db:migrate runs okay when go rails s, following message

migrations pending. resolve issue, run:  bin/rake db:migrate rails_env=development    include friendlyid   friendly_id :account 

then when bin/rake db:migrate rails_env=development, console returns error

pg::duplicatetable: error:  relation "friendly_id_slugs" exists 

i've tried dropping db gives more more problems solve(since have users data in development.)

and when google it, same issues reported in github page been solved bug fix , won't give me hint me solve it..

how work properly??? thank time.

following solved problem...!

bundle exec rake db:reset 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -