Sha256: ccde81f52405383526139929e206a705bc2fd4f78cc899b91053c73bcf0c9868
Contents?: true
Size: 331 Bytes
Versions: 3
Compression:
Stored size: 331 Bytes
Contents
require 'rails/generators/active_record' module ActiveRecord module Generators class Meta2Generator < ActiveRecord::Generators::Base source_root File.expand_path("../templates", __FILE__) def copy_meta2 migration_template 'migration.rb', "db/migrate/create_#{table_name}.rb" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
meta2-0.0.3 | lib/generators/active_record/meta2_generator.rb |
meta2-0.0.2 | lib/generators/active_record/meta2_generator.rb |
meta2-0.0.1 | lib/generators/active_record/meta2_generator.rb |