[Rails-core] Re: Should you be able to override fixture_path for `rake db:fixtures:load`?

2016-12-21 Thread Chad Woolley
So, I finally realized I could accomplish this by setting ENV['FIXTURES_PATH'], but it took me a while to realize this. I submitted the following PR to make this "just work" for users of rspec + fixtures. https://github.com/rails/rails/pull/27432 Thanks, -- Chad On Thu, Nov 24, 2016 at 7:46 PM,

[Rails-core] Idea for Rails v.Next - add database validations?

2016-12-21 Thread Richard McSharry
Hi, Now it might be that as an ex-DBA I find this a good idea, but anyway ... I think it bugs a lot of people that a Rails application doesn't hep with database consistency and anyway that's a tough (and database specific) issue. But I recently found this gem (somewhat under utilised it seems,

Re: [Rails-core] has_many through additional (default) attribute values for through record on adding

2016-12-21 Thread T.J. Schuck
This mailing list (rubyonrails-core) is intended for discussion about development of the framework itself, not usage of it. For support issues or usage questions like this one that are not issues with Rails itself, please post to the rubyonrails-talk mailing list ( http://groups.google.com/group/r

[Rails-core] has_many through additional (default) attribute values for through record on adding

2016-12-21 Thread Nazar Matus
For example, I have a User, Achievement and AchievementDate. class User < ApplicationRecord has_many :achievement_dates has_many :achievements, through: :achievement_dates end And when I write add an achievement like this: user.achievements << achievement I want through record to be initializ