Class: GoodMigrations::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/good_migrations/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_beforeObject

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