I am working on a rails application, and I am using Sqlite in my dev environment and PostgreSQL in production. Is there any way to write a “database-aware” migration? i.e. one that would execute a certain SQL statement on Sqlite and a differetn statement on Postgres?
I am working on a rails application, and I am using Sqlite in my
Share
You should be able to write something like:
Its not something I have had to implement myself so I’m not aware of any pitfalls.