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