Sha256: 18f81a352eb47b621bd68665407e51d94a254d3ba1a20fbce1f894de4b88f52c
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
namespace 'mk' do desc 'Create a new migration at migrations/YYYYMMDDHHMMSS_name.rb' task :migration, :name do |_, args| make_class_template "migrations/#{Time.now.utc.strftime('%Y%m%d%H%M%S')}_#{args[:name]}.rb", "class #{args[:name].camelize} < ActiveRecord::Migration" end desc 'Create a new model at models/name.rb' task :model, :name do |_, args| make_class_template "models/#{args[:name]}.rb", "class Kit::#{args[:name].camelize} < ActiveRecord::Base" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kit-1.2.0 | lib/kit/rake/admin/make.rb |