Did you try setting config.active_record.schema_format = :sql in the environment configuration files?
config.active_record.schema_format = :sql
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.
db/schema.rb
db/structure.sql
github.com/jasonfb/R5244EnumIssueTest
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Did you try setting
config.active_record.schema_format = :sql
in the environment configuration files?Ah yes, this works as expected and leaves you with no more
db/schema.rb
file and instead adb/structure.sql
file written in the native SQL Postgres commands instead of the Rails schema syntax.github.com/jasonfb/R5244EnumIssueTest