class method self.validate_migration_timestamps

Ruby on Rails 8.1.2

Since v7.2.3

Available in: v7.2.3 v8.0.4 v8.1.2

Specify whether or not to validate migration timestamps. When set, an error will be raised if a timestamp is more than a day ahead of the timestamp associated with the current time. timestamped_migrations must be set to true.

Source
# File activerecord/lib/active_record.rb, line 404
  singleton_class.attr_accessor :validate_migration_timestamps

Defined in activerecord/lib/active_record.rb line 404 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord

Type at least 2 characters to search.

↑↓ navigate · open · esc close