lib/imigrate.rb in imigrate-0.9.1 vs lib/imigrate.rb in imigrate-0.9.2

- old
+ new

@@ -1,9 +1,15 @@ require_relative 'imigrate/railtie' require_relative 'generators/imigrate' module Imigrate - mattr_accessor :env_prefix + mattr_reader :env_prefix mattr_accessor :activated + + def self.env_prefix=(number) + return if number.blank? + raise 'env_prefix must be a number' unless number.is_a?(Integer) + @@env_prefix = number + end SCHEMA_MIGRATIONS_TABLE_NAME = 'data_migrations' MIGRATION_PATH = 'db/data' end