replicate
replicate copied to clipboard
Dump and load relational objects between Ruby environments.
Hoi, here's another feature I'm using. FYI, when I use this in my project, I get warnings about missing key translations: ``` warn: ShippingCategory(655) not in keymap, referenced by Product(1069)#shipping_category_id...
Just wanted to let people know about a workaround I found for working with Replicate and Heroku. Basically Heroku only wants to pass UTF-8 friendly characters back to the client...
cyclic associations lead to an infinite loop on dump, for instance ``` ruby class Order < ActiveRecord::Base has_many :states belongs_to :last_state, :class_name => 'State' end class State < ActiveRecord::Base belongs_to...
This allows dumps taken on a newer version of the object graph (or database schema) to load in older versions where some object types (or active record models) are missing.
Dug up this branch while pruning. I think I was convinced that replicate wasn't correctly handling HABTM, then in the course of writing tests realized that I was just doing...
This commit adds an if block_given? qualifier to the ActiveRecord callbacks. If no block is given and these functions are called, a JumpError is raised. This fixes that issue.
`find(:first)` is gone
It will trigger unique & foreign key constraints on the database
In a polymorphic relationship on ActiveRecord 4+, this conditional would result in a `nil` reference class, because it would fall back to the pre-3.0 options rather than using the reflection's...
Hi, Replicate gem looks awesome and seems the right thing for selectively copying data from prod to my devel db. However, either I am not following the steps correctly or...