ActiveXRecord cache_timestamp_format configuration not applicable

I am trying to change the timestamp format of the migration version by setting this configuration config.active_record.cache_timestamp_format = :nsecto application.rbor to development.rb, as http://guides.rubyonrails.org/configuring.html#configuring-active-record says here .

The problem is that this configuration is ignored regardless of the format that I set there, when I create a new migration, the timestamp format remains the same.

Am I doing something wrong here?

+4
source share
1 answer

Since, apparently, rail migration ignores it:

https://github.com/rails/rails/blob/master/activerecord/lib/active_record/migration.rb#L909-L915

- : nsec cache_key, , .

, -, , .

( Time::DATE_FORMATS)

, , , : config.active_record.timestamped_migrations

, .

+4

Source: https://habr.com/ru/post/1660423/


All Articles