lib/tasks/development.rake in locomotivecms-3.0.0.pre.alpha.2 vs lib/tasks/development.rake in locomotivecms-3.0.0.pre.alpha.3
- old
+ new
@@ -21,9 +21,13 @@
account = Locomotive::Account.new email: "admin@locomotivecms.com", password: "locomotive", password_confirmation: "locomotive", name: "Admin"
account.api_key = 'd49cd50f6f0d2b163f48fc73cb249f0244c37074'
account.save!
+ unassociated_account = Locomotive::Account.new email: "new_admin@locomotivecms.com", password: "locomotive", password_confirmation: "locomotive", name: "New Admin"
+ unassociated_account.api_key = 'd49cd50f6f0d2b163f48fc73cb249f0244c37074'
+ unassociated_account.save!
+
site = Locomotive::Site.create! name: "LocomotiveCMS", handle: "www", domains: ["www.example.com"]
site.memberships.build account: account, role: 'admin'
site.save!
site = Locomotive::Site.create! name: "Sample site", handle: "sample", domains: ["sample.example.com"]