Domanda

Is there any way to take a running database and generate a migration file from it? If not does anyone have any advice on how to approach that?

Background: Have a new project where a PHP developer jumped into a rails project and starting adding tables and columns though PostGres admin tool.

Nessuna soluzione corretta

Altri suggerimenti

Created a directory called "log" then ran this command

RAILS_ENV=production rake db:schema:dump
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top