anvilresearch/modinha

'created' attribute is writable when timestamps:true in Model definition

Closed this issue · 2 comments

The created attribute shouldn't be writable when timestamps:true (default case) is specified in a Model. This value should be set on creation and never modified.

When a Model is defined with timestamps:false, then 'created' and 'modified' should be writable, because they have no special meaning for the Model.

This is a great find. Thank you once again, Miguel! I'll take a close look at your pull request in the near future.

Closing as PR #3 has long been merged.