2016-08-22 12:37:24 +02:00
|
|
|
begin
|
|
|
|
Administration.create!(email: SUPERADMIN.email, password: SUPERADMIN.password)
|
|
|
|
rescue ActiveRecord::RecordInvalid
|
|
|
|
admin = Administration.find_by_email(SUPERADMIN.email)
|
|
|
|
admin.password = SUPERADMIN.password
|
|
|
|
admin.save
|
|
|
|
end
|