ruby on rails - ActiveRecord cache_timestamp_format configuration not being applied -
i'm trying change migration version timestamp format setting configuration config.active_record.cache_timestamp_format = :nsec
in application.rb
or in development.rb
, said here http://guides.rubyonrails.org/configuring.html#configuring-active-record.
the problem configuration being ignored, regardless of format set there, when generate new migration, timestamp format stays same.
am doing wrong here?
because apparently rails migration ignoring it:
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/migration.rb#l909-l915
also - according docs, :nsec default used in cache_key , don't see related migrations there.
though suppose if using rails cache you'll see different key changing option.
(you can see allowed values time::date_formats
)
the configuration, can see, allowed migration names use integer vs timestamps: config.active_record.timestamped_migrations
and if you're not working alone, should leave option is.
Comments
Post a Comment