Sha256: db91252bf90649759e71453d3f67dabe922da9a82c17ddc24296456b109060f5
Contents?: true
Size: 539 Bytes
Versions: 4
Compression:
Stored size: 539 Bytes
Contents
desc "Add schema information (as comments) to model and fixture files" task :annotate_models => :environment do require 'annotate/annotate_models' options={} options[:position_in_class] = ENV['position_in_class'] || ENV['position'] options[:position_in_fixture] = ENV['position_in_fixture'] || ENV['position'] AnnotateModels.do_annotations(options) end desc "Remove schema information from model and fixture files" task :remove_annotation => :environment do require 'annotate_models' AnnotateModels.remove_annotations end
Version data entries
4 entries across 4 versions & 2 rubygems