db/seeds.rb in cadenero-0.0.2.a vs db/seeds.rb in cadenero-0.0.2.a1
- old
+ new
@@ -1,2 +1,8 @@
-user = Cadenero::User.create(email: "testy@example.com", password: "changeme", password_confirmation: "changeme")
-Cadenero::V1::Account.create(name: 'Root Account for the Site', subdomain: 'www', owner: user)
+@account = Cadenero::V1::Account.create!(name: Cadenero.default_account_name,
+ subdomain: Cadenero.default_account_subdomain,
+ owner: Cadenero::User.create!(email: Cadenero.default_user_email,
+ password: Cadenero.default_user_password,
+ password_confirmation: Cadenero.default_user_password))
+
+@account.create_schema
+@account.ensure_authentication_token!
\ No newline at end of file