I just added the Friendly_id pearl to my rails project, trying not to use the database id and create a pool, but I cannot create bullets for old records. My model looks like this.
class Mapping < ActiveRecord::Base extend FriendlyId friendly_id :title, use: :slugged
Then I run Model.find_each(&:save) , but it continues to spill out a null result. I tried to completely comment on should_generate_new_friendly_id , but no luck. Does anyone see what I'm doing wrong here?
EDIT
I turned my database over and rewrote my migrations, and this seems to fix the problem.
source share