Quick style correction
This commit is contained in:
parent
006116c6e9
commit
367fb9bf91
@ -3,8 +3,9 @@ class DeviseCreateAdminUsers < ActiveRecord::Migration
|
||||
def migrate(direction)
|
||||
super
|
||||
# Create a default user
|
||||
return unless direction == :up
|
||||
AdminUser.create!(email: 'admin@example.com', password: 'password',
|
||||
password_confirmation: 'password') if direction == :up
|
||||
password_confirmation: 'password')
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
|
Loading…
Reference in New Issue
Block a user