Rewriting Fixtures internals to see what we need #25
kaspth
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everybody, here's another sketch. I've been looking into how Rails inserts Fixtures because it does a lot of management of Active Record's database connections, which we may need to dip into at some point (although I'm trying to avoid it as much as possible).
So here I've taken some code in this file https://github.com/rails/rails/blob/e98a6bda0934ab4773de20889df883dd598d6f04/activerecord/lib/active_record/fixtures.rb#L540 and I'm rewriting it bit by bit to understand it better and to see if I could improve the structure. I also tend to chop old legacy bits just because I'm not intending to ship this.
Beta Was this translation helpful? Give feedback.
All reactions