Skip to content
  • Adrianna Chang's avatar
    06b7e345
    Add `active_record.config.validate_migration_timestamps` config option. · 06b7e345
    Adrianna Chang authored
    When set, an `ActiveRecord::InvalidMigrationTimestampError` will be raised if the timestamp
    prefix for a migration is more than a day ahead of the timestamp associated with the current time.
    This is done to prevent forward-dating of migration files, which can impact migration generation
    and other migration commands.
    
    It is turned off by default, but will be turned on for applications starting in Rails 7.2.
    06b7e345
    Add `active_record.config.validate_migration_timestamps` config option.
    Adrianna Chang authored
    When set, an `ActiveRecord::InvalidMigrationTimestampError` will be raised if the timestamp
    prefix for a migration is more than a day ahead of the timestamp associated with the current time.
    This is done to prevent forward-dating of migration files, which can impact migration generation
    and other migration commands.
    
    It is turned off by default, but will be turned on for applications starting in Rails 7.2.
Loading