migration and associations

completes #26
This commit is contained in:
Mark Moser
2016-09-15 13:26:31 -05:00
parent 372e86507e
commit 2233d73c39
9 changed files with 54 additions and 2 deletions

9
test/fixtures/reviewer_to_quizzes.yml vendored Normal file
View File

@ -0,0 +1,9 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
user: reviewer
quiz: fed
two:
user: reviewer2
quiz: fed

View File

@ -12,6 +12,12 @@ reviewer:
password_digest: <%= BCrypt::Password.create("password", cost: 4) %>
role: reviewer
reviewer2:
name: David Reviewer
email: david.reviewer@mailinator.com
password_digest: <%= BCrypt::Password.create("password", cost: 4) %>
role: reviewer
admin:
name: Alan Admin
email: alan.admin@mailinator.com