Skip to content

Commit

Permalink
fixup! Add rake task to migrate User#url_name
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed May 26, 2023
1 parent 081c77c commit 72acddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/temp.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace :temp do
desc 'Migrate current user slugs into'
desc 'Migrate current User#url_name to new slug model'
task migrate_user_slugs: :environment do
scope = User.left_joins(:slugs).where(slugs: { id: nil })
count = scope.count
Expand Down

0 comments on commit 72acddb

Please sign in to comment.