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

Revert "Set microsencods precision as default value for datetime columns" #3

Closed
wants to merge 1 commit into from

Conversation

robertomiranda
Copy link
Member

This reverts commit eafa459. Already part of Rails 7 rails/rails#42297

@robertomiranda robertomiranda requested review from sikachu, a team, alinagrishchuk and errm and removed request for a team March 2, 2022 11:05
Copy link
Contributor

@sikachu sikachu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my inline comment 🙇‍♂️

Comment on lines -2 to -3
require "cookpad_mysql_defaults/table_definition"
require "cookpad_mysql_defaults/schema_statements"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think reverting this is a good idea, since this may break other Rails 6 app that relies on this flag too.

What about requiring the code if AR version is less than 7?

if ActiveRecord::VERSION::MAJOR < 7
  require "cookpad_mysql_defaults/table_definition"
  require "cookpad_mysql_defaults/schema_statements"
end

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

Successfully merging this pull request may close these issues.

None yet

2 participants