2010-07-13 00:46:17 +00:00
|
|
|
account = Account.create! :name => 'Admin', :email => 'admin@example.com', :password => 'locomotive', :password_confirmation => 'locomotive'
|
2010-05-10 22:39:52 +00:00
|
|
|
|
|
|
|
site = Site.new :name => 'Locomotive test website', :subdomain => 'test'
|
|
|
|
site.memberships.build :account => account, :admin => true
|
|
|
|
site.save!
|
2010-07-13 00:46:17 +00:00
|
|
|
|
|
|
|
puts "Your first website has been created !"
|
|
|
|
puts "Admin url: http://test.example.com/admin"
|
|
|
|
puts "Crendetials: admin@example.com / locomotive"
|