Class: GoodMigrations::Configuration
- Inherits:
-
Object
- Object
- GoodMigrations::Configuration
- Defined in:
- lib/good_migrations/configuration.rb
Instance Attribute Summary collapse
-
#permit_autoloading_before ⇒ Object
Migrations with timestamps (the numbers at the beginning of the file name) from before this configured time will be allowed to perform autoloading, bypassing the mechanism of this gem.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
34 35 36 |
# File 'lib/good_migrations/configuration.rb', line 34 def initialize @permit_autoloading_before = nil end |
Instance Attribute Details
#permit_autoloading_before ⇒ Object
Migrations with timestamps (the numbers at the beginning of the file name) from before this configured time will be allowed to perform autoloading, bypassing the mechanism of this gem. Accepts:
nil (default): never permit autoload
String accepted by `Time.parse`, such as: 20211103150610 or 20211103_150610
object responding to `to_time`, such as Date and Time
17 18 19 |
# File 'lib/good_migrations/configuration.rb', line 17 def permit_autoloading_before @permit_autoloading_before end |