Sha256: 35fc2248a7213e1d6f81cf67c251d928fda75b24b5b19691ad5a09cc889023c5
Contents?: true
Size: 457 Bytes
Versions: 10
Compression:
Stored size: 457 Bytes
Contents
require 'rails/generators/active_record' module ActiveRecord module Generators class GmpointGenerator < ActiveRecord::Generators::Base argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" source_root File.expand_path("../templates", __FILE__) def copy_gmpoint_migration migration_template "migration.rb", "db/migrate/gmpoint_add_columns_to_#{table_name}" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems