mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-09 00:05:49 -04:00
Give Skud a staff account as part of oneoff shop setup
This commit is contained in:
@@ -58,7 +58,7 @@ namespace :growstuff do
|
||||
:is_paid => true,
|
||||
:is_permanent_paid => true
|
||||
)
|
||||
AccountType.find_or_create_by_name(
|
||||
@staff_account = AccountType.find_or_create_by_name(
|
||||
:name => "Staff",
|
||||
:is_paid => true,
|
||||
:is_permanent_paid => true
|
||||
@@ -86,6 +86,13 @@ namespace :growstuff do
|
||||
end
|
||||
end
|
||||
|
||||
puts "Making Skud a staff account..."
|
||||
@skud = Member.find_by_login_name('Skud')
|
||||
if @skud
|
||||
@skud.account.account_type = @staff_account
|
||||
@skud.account.save
|
||||
end
|
||||
|
||||
puts "Done setting up shop."
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user