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

belongs_to :coupon should be optional at user.rb #8

Open
ya-watanabe opened this issue Jan 5, 2018 · 1 comment
Open

belongs_to :coupon should be optional at user.rb #8

ya-watanabe opened this issue Jan 5, 2018 · 1 comment

Comments

@ya-watanabe
Copy link

now days, belongs_to fields became required automatically.
ref; rails/rails#18233

but it makes "rake db:seed" failure.
So can you change it to optional value?

Thank you.

@samuelmaker
Copy link

@ya-watanabe did you find a solution for this? adding 'optional: true' to my user.rb gave me another issue when trying to use coupons

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

No branches or pull requests

2 participants