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?
git checkout db/schema.rb
– Oeenable_extension
. In production, I do the following:pull
,migrate
,git checkout schema.rb
before I am able topull
the next time. – Oegit checkout schema.rb
every time, that's why it feels I should just ignoreschema.rb
:( – Oe