Sha256: c1400b19d5e95d8a25259d30f0a7301fca64e4213143532ae20790cdeaad5a48

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

require 'createk_data_migrator'

namespace :db do
  desc 'Run Data Migrations'
  namespace :data do
    task migrate: :environment do
      begin
        old_table_name = ActiveRecord::Base.schema_migrations_table_name
        ActiveRecord::Base.schema_migrations_table_name = 'data_migrations'

        CreatekDataMigrator.migrate
      ensure
        ActiveRecord::Base.schema_migrations_table_name = old_table_name
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
createk_data_migrator-0.1.2 lib/tasks/data_migrate.rake
createk_data_migrator-0.1.1 lib/tasks/data_migrate.rake