Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allyship seeds cannot be created #82

Closed
julianguyen opened this issue Dec 6, 2015 · 3 comments
Closed

Allyship seeds cannot be created #82

julianguyen opened this issue Dec 6, 2015 · 3 comments
Labels

Comments

@julianguyen
Copy link
Member

Allyship seeds cannot be created after running rake db:seed and/or rake db:setup

After putting debug statements in seeds.rb, the error message is coming from the different_users validation in Allyship.rb, which makes no sense because the user ids used are different and non-nil

@wdhorton

@julianguyen julianguyen added the bug label Dec 6, 2015
@julianguyen
Copy link
Member Author

Issue was fixed, adding user_id and ally_id to attr_accessible fixed it

@wdhorton
Copy link
Contributor

wdhorton commented Dec 7, 2015

Glad it's fixed, but that's still weird. ActiveRecord should make all column names attr_accessible by default. I'll try to get to the bottom of it tonight or tomorrow.

@julianguyen julianguyen reopened this Dec 7, 2015
@julianguyen
Copy link
Member Author

Yes please review @wdhorton! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants