Permalink
Browse files

Fix null-constraint violation exception

Allow to persist `Book` objects by removing unhandled `created_at` and
`updated_at` columns in migration to avoid exception caused by
null-constraint on these columns.
  • Loading branch information...
Bounga committed Jun 25, 2015
1 parent 53415d8 commit 41b7003aeb7bcd686e09fe0add9656dabb817d35
Showing with 0 additions and 2 deletions.
  1. +0 −2 source/guides/getting-started.md
@@ -407,8 +407,6 @@ Lotus::Model.migration do
primary_key :id
column :title, String, null: false
column :author, String, null: false
column :created_at, DateTime, null: false
column :updated_at, DateTime, null: false
end
end
end

0 comments on commit 41b7003

Please sign in to comment.