On the up.sql script that is used as a first migration.
This: created_at TIMESTAMP NOT NULL DEFAULT NOW(), fails when using sqlite as a database.
One way to solve it is to replace it with: created_at TIMESTAMP NOT NULL DEFAULT (strftime('%s','now')),
On the up.sql script that is used as a first migration.
This:
created_at TIMESTAMP NOT NULL DEFAULT NOW(),fails when using sqlite as a database.One way to solve it is to replace it with:
created_at TIMESTAMP NOT NULL DEFAULT (strftime('%s','now')),