gsusmonzon/models-to-sql-rails-plugin
Plugin to convert rails models into proper SQL, with all the associations getting dumped also. Using this you can for example fetch object graphs from production system DB and move them to your local development setup.