Tuesday, 17 September 2013

Should I ignore schema.rb because extension differs on development/production OS?

Should I ignore schema.rb because extension differs on
development/production OS?

My database uses PostgreSQL. I develop on Mac and this line is needed:
# db/schema.rb on Mac environment
enable_extension "plpgsql"
However, the extension is not required on Linux.
In this case, should we just ignore schema.rb and generate that through
db:migrate for both dev and production environments?

No comments:

Post a Comment