Closed aaronrussell closed 6 years ago
I started to work on this, but I wasn't able to make a failing test. Reason being, with Rails < 5.2 the records are valid even without the optional: true
parameter. Any ideas?
This change was made in this commit:
https://github.com/pushtype/push_type/commit/64ba0c9d1329ee2428ff01e6f4891897436242c1
I also couldn't create a failing test prior... ¯_(ツ)_/¯ ... but not gonna lose sleep over it. Will close this.
Default behaviour in Rails >5 makes
belongs_to
required by default. Change in User model: