Does anyone know of a way to do this?
I have an existing table that I created with sql and I would like to create a schema from it that would reproduce the table (mi
rake db:schema:dump
create_table
lines from the schema dump and paste it into the migration fileA schema is written in [your app]/db/schema.rb. Hope this help!