Open itsthatguy opened 9 years ago
nice catch.. i wonder if we can fix that in some way..
Might be able to hook into our knex object and overwrite it.
yeah, seems like there is no easy way to configure it.. hmm, we could patch that before it's passed to the function
This is more a knex issue than sails-migrations issue, but wanted to have the issue documented for future users. http://knexjs.org/#Schema-timestamps
Issue:
table.timestamps()
createscreated_at
andupdated_at
while sails is expectingcreatedAt
andupdatedAt
Resolutions:
1) If you haven't yet used
table.timestamps()
:2) If you've already used
table.timestamps()
:Create a migration for fixing the erroneous columns (
sails-migrations generate fix_timestamps
)