rails-stripe-coupons icon indicating copy to clipboard operation
rails-stripe-coupons copied to clipboard

belongs_to :coupon should be optional at user.rb

Open ya-watanabe opened this issue 7 years ago • 1 comments

now days, belongs_to fields became required automatically. ref; https://github.com/rails/rails/issues/18233

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

Thank you.

ya-watanabe avatar Jan 05 '18 13:01 ya-watanabe

@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

samuelmaker avatar Jul 18 '18 20:07 samuelmaker