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,
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,
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
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