Sha256: 95229e705923eea4eb6b5930309d55b851c2f760794ddcb71c194770f107b937
Contents?: true
Size: 516 Bytes
Versions: 6
Compression:
Stored size: 516 Bytes
Contents
require 'trucker' include Trucker namespace :db do namespace :migrate do <%- unless legacy_models.size > 0 -%> # desc 'Migrates products' # task :products => :environment do # migrate :products # end <%- end -%> <%- legacy_models.each do |model_name| -%> desc 'Migrates <%= model_name.pluralize.downcase %>' task :<%= model_name.pluralize.downcase %> => :environment do Trucker.migrate :<%= model_name.pluralize.downcase %> end <%- end -%> end end
Version data entries
6 entries across 6 versions & 1 rubygems