DEV Community

Discussion on: Using Postgres Enum Type in Rails

Collapse
 
diegocasmo profile image
Diego Castillo

Did you try setting config.active_record.schema_format = :sql in the environment configuration files?

Collapse
 
jasonfb profile image
Jason Fleetwood-Boldt

Ah yes, this works as expected and leaves you with no more db/schema.rb file and instead a db/structure.sql file written in the native SQL Postgres commands instead of the Rails schema syntax.

Collapse
 
jasonfb profile image
Jason Fleetwood-Boldt