How can I dump one user with all his associations (comments, posts etc) from one database (development, sqlite) to insert it another (production, mysql).
Should I dump it into yaml or to sql or something else?
How can I dump one user with all his associations (comments, posts etc) from one database (development, sqlite) to insert it another (production, mysql).
Should I dump it into yaml or to sql or something else?
You can use this gem: https://github.com/ludicast/yaml_db
Ok.
God Save the YAML
I've used YAML dumping into file from development and loading this in my production. There was hack with id, that have changed, due it is auto_increament.
development
production