Sha256: d787db83e7506b9f1f07ba24652d9086bfdaeb80d98ffffc3432886fa12a415d
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 Bytes
Contents
# frozen_string_literal: true desc 'Run all table configs in db/table_config folder' namespace :aws_record do task migrate: :environment do Dir[File.join('db', 'table_config', '**/*.rb')].each do |filename| puts "running #{filename}.rb" require(File.expand_path(filename)) table_config = ModelTableConfig.config table_config.migrate! unless table_config.compatible? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-record-rails-0.2.0 | lib/tasks/aws_record/migrate.rake |
aws-record-rails-0.1.0 | lib/tasks/aws_record/migrate.rake |