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
Post a Comment