Rails Generator
A blazing-fast tool to easily generate Rails generator commands from your SQL files.
How does it work?
You can use a site like dbdiagram.io to create and export your schema, or use an SQL file from another source.
Copy the SQL file contents and paste them into the text area where prompted.
If you're using dbdiagram.io, you can find the export button at the top middle of the screen. You can also copy/paste the DBML code directly into the text area.
Some notes...
Currently, this tool only generates commands for generators that use the format
However... stay tuned, as there are plans to add reliable for more genators and SQL types in the near future!
|some_lowercase_model_name| |field_name:field_type|
(so it's not the best for things like controllers...yet), and it has only been tuned to work with PostgreSQL sql and DDL from Postico.
However... stay tuned, as there are plans to add reliable for more genators and SQL types in the near future!