Exception: ActiveRecord::InvalidMigrationTimestampError
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
MigrationError ,
ActiveRecordError ,
StandardError
|
|
Instance Chain:
self,
MigrationError ,
ActiveRecordError ,
StandardError
|
|
Inherits: |
ActiveRecord::MigrationError
|
Defined in: | activerecord/lib/active_record/migration.rb |
Class Method Summary
MigrationError
- Inherited
Constructor Details
.new(version = nil, name = nil) ⇒ InvalidMigrationTimestampError
# File 'activerecord/lib/active_record/migration.rb', line 132
def initialize(version = nil, name = nil) if version && name super(<<~MSG) Invalid timestamp #{version} for migration file: #{name}. Timestamp must be in form YYYYMMDDHHMMSS, and less than #{(Time.now.utc + 1.day).strftime("%Y%m%d%H%M%S")}. MSG else super(<<~MSG) Invalid timestamp for migration. Timestamp must be in form YYYYMMDDHHMMSS, and less than #{(Time.now.utc + 1.day).strftime("%Y%m%d%H%M%S")}. MSG end end