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

Version Path
gmpoint-0.1.3 lib/generators/active_record/gmpoint_generator.rb
gmpoint-0.1.0 lib/generators/active_record/gmpoint_generator.rb
gmpoint-0.0.9 lib/generators/active_record/gmpoint_generator.rb
gmpoint-0.0.8 lib/generators/active_record/gmpoint_generator.rb
gmpoint-0.0.7 lib/generators/active_record/gmpoint_generator.rb
gmpoint-0.0.6 lib/generators/active_record/gmpoint_generator.rb
gmpoint-0.0.5 lib/generators/active_record/gmpoint_generator.rb
gmpoint-0.0.4 lib/generators/active_record/gmpoint_generator.rb
gmpoint-0.0.3 lib/generators/active_record/gmpoint_generator.rb
gmpoint-0.0.2 lib/generators/active_record/gmpoint_generator.rb