Sha256: 39db86ab6230aaba77cf27c218da9501d6ed967c0f44e21e45a904d023693d00
Contents?: true
Size: 646 Bytes
Versions: 3
Compression:
Stored size: 646 Bytes
Contents
module DataMigrate module Tasks module DataMigrateTasks extend self def migrations_paths @migrations_paths ||= DataMigrate.config.data_migrations_path end def migrate DataMigrate::DataMigrator.assure_data_schema_table target_version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR == 2 DataMigrate::MigrationContext.new(migrations_paths).migrate(target_version) else DataMigrate::DataMigrator.migrate(migrations_paths, ENV["VERSION"] ? ENV["VERSION"].to_i : nil) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems