Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURRENT_TIMESTAMP and schema.rb syntax error #3

Open
atomical opened this issue Feb 22, 2021 · 0 comments
Open

CURRENT_TIMESTAMP and schema.rb syntax error #3

atomical opened this issue Feb 22, 2021 · 0 comments

Comments

@atomical
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant