Sha256: 0e092f2a0d754b0873387eb5c93e9a4dd52b1f42f695f50e569feec5b8b2b8a4

Contents?: true

Size: 379 Bytes

Versions: 11

Compression:

Stored size: 379 Bytes

Contents

desc 'Run all table configs in table_config folder'
namespace :aws_record do
  task migrate: :environment do
    Dir[File.join('db', 'table_config', '**/*.rb')].each do |filename|
      puts "running #{filename}"
      require(File.expand_path(filename))

      table_config = ModelTableConfig.config
      table_config.migrate! unless table_config.compatible?
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
aws-sdk-rails-3.8.0 lib/tasks/aws_record/migrate.rake
aws-sdk-rails-3.7.1 lib/tasks/aws_record/migrate.rake
aws-sdk-rails-3.7.0 lib/tasks/aws_record/migrate.rake
aws-sdk-rails-3.6.4 lib/tasks/aws_record/migrate.rake
aws-sdk-rails-3.6.3 lib/tasks/aws_record/migrate.rake
aws-sdk-rails-3.6.2 lib/tasks/aws_record/migrate.rake
aws-sdk-rails-3.6.1 lib/tasks/aws_record/migrate.rake
aws-sdk-rails-3.6.0 lib/tasks/aws_record/migrate.rake
aws-sdk-rails-3.5.0 lib/tasks/aws_record/migrate.rake
aws-sdk-rails-3.4.0 lib/tasks/aws_record/migrate.rake
aws-sdk-rails-3.3.0 lib/tasks/aws_record/migrate.rake