Module: Migrer

Defined in:
lib/migrer.rb,
lib/migrer/engine.rb,
lib/migrer/version.rb

Defined Under Namespace

Classes: DataMigrationVersion, Engine

Constant Summary collapse

VERSION =
"0.1.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



13
14
15
# File 'lib/migrer.rb', line 13

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/migrer.rb', line 21

def self.configure
  yield(configuration)
end

.paranoid?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/migrer.rb', line 25

def self.paranoid?
  ENV['PARANOID'] == 'true' || configuration.paranoid
end

.resetObject



17
18
19
# File 'lib/migrer.rb', line 17

def self.reset
  @configuration = Configuration.new
end

.table_name_prefixObject



9
10
11
# File 'lib/migrer.rb', line 9

def self.table_name_prefix
  ''
end