ActiveRecord For Databases Without Unique Ids
18-Feb-2021 1780
Sometimes unique situations and things out of our control lead to wildly unorthodox requirements. Recently, I had an experience where I needed to use ActiveRecord without relying on the database ID for any records. If anyone is considering doing the same, I highly recommend finding another way! But, let's move on to the rest of the story.Decisions were made. Smaller databases (clones in structure but not in data) needed to be merged. I joined the project just as the team was putting the finishing touches on a script that copies and pastes database records from one database to another. It copied everything exactly as-is, including IDs.
ActiveRecord For Databases Without Unique Ids #ruby #rubydeveloper #rubyonrails #ActiveRecord #Databases #Without #Unique #activerecord #databases https://www.rubyonrails.ba/link/activerecord-for-databases-without-unique-ids