adds terms of services to seeds
This commit is contained in:
@@ -15,7 +15,7 @@ puts "Creating Users"
|
||||
def create_user(email, username = Faker::Name.name)
|
||||
pwd = '12345678'
|
||||
puts " #{username}"
|
||||
User.create!(username: username, email: email, password: pwd, password_confirmation: pwd, confirmed_at: Time.now)
|
||||
User.create!(username: username, email: email, password: pwd, password_confirmation: pwd, confirmed_at: Time.now, terms_of_service: "1")
|
||||
end
|
||||
|
||||
admin = create_user('admin@madrid.es', 'admin')
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Default admin user (change password after first deploy to a server!)
|
||||
admin = User.create!(username: 'admin', email: 'admin@madrid.es', password: '12345678', password_confirmation: '12345678', confirmed_at: Time.now)
|
||||
admin = User.create!(username: 'admin', email: 'admin@madrid.es', password: '12345678', password_confirmation: '12345678', confirmed_at: Time.now, terms_of_service: "1")
|
||||
admin.create_administrator
|
||||
|
||||
# Names for the moderation console, as a hint for moderators
|
||||
|
||||
Reference in New Issue
Block a user