Skip to content

CURRENT_TIMESTAMP and schema.rb syntax error #3

@atomical

Description

@atomical

I have an updated_at field with a default value of CURRENT_TIMESTAMP.

When I use schema_validations and run rake db:migrate a syntax error appears in the schema.rb file

    t.datetime "updated_at",         :default=>#<Proc:0x00007f91da162ad8@(eval):1 (lambda)>

This happens only when I include schema_validations in the Gemfile. Rails 5.1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions