Skip to content

Commit

Permalink
Refactor User::ROLES to User.roles
Browse files Browse the repository at this point in the history
  • Loading branch information
veganstraightedge committed Sep 10, 2024
1 parent 967dbfb commit 2867c28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/tasks/db/export.rake
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ namespace :db do
# Update the first user instead of creating a new one,
# so to not reveal how many production users there are
password = '1234567890' * 3
publisher_role = User::ROLES.index :publisher

User.find(1).update username: :publisher,
password: password,
password_confirmation: password,
role: publisher_role
role: User.roles[:publisher]

puts '==> Scrubbing drafts…'
# TODO: add #publication_status to these models: Definition Episode Podcast
Expand Down

0 comments on commit 2867c28

Please sign in to comment.