SchemaPlus / schema_validations

Automatically creates validations basing on the database schema.
Other
173 stars 34 forks source link

Invalid default value for 'created_at' #71

Open atomical opened 2 years ago

atomical commented 2 years ago

The default has CURRENT_TIMESTAMP in schema.rb

This is when I run rake db:test:prepare

atomical commented 1 year ago

The file schema.rb has a syntax error because of a database default that is set:

    t.timestamp "db_created_at",       :default=>#<Proc:0x000000010bfaab70 (eval):1 (lambda)>, :null=>false