Sha256: 55cba486125492ca2780494f372d25e0dbdda6057d3b46bed57a3c986765e1ca

Contents?: true

Size: 543 Bytes

Versions: 20

Compression:

Stored size: 543 Bytes

Contents

module Realogy
  module Generators
    class InstallGenerator < Rails::Generators::Base

      include Rails::Generators::Migration
      source_root File.expand_path("../templates", __FILE__)

      desc "Copy migration file to your application."

      def self.next_migration_number(path)
        Time.now.utc.strftime("%Y%m%d%H%M%S")
      end

      def create_model_file
        %w[realogy_entities].each do |name|
          migration_template "create_#{name}.rb", "db/migrate/create_#{name}.rb"
        end
      end

    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
realogy-0.6.8 lib/generators/realogy/install/install_generator.rb
realogy-0.6.7 lib/generators/realogy/install/install_generator.rb
realogy-0.6.6 lib/generators/realogy/install/install_generator.rb
realogy-0.6.5 lib/generators/realogy/install/install_generator.rb
realogy-0.6.4 lib/generators/realogy/install/install_generator.rb
realogy-0.6.3 lib/generators/realogy/install/install_generator.rb
realogy-0.6.2 lib/generators/realogy/install/install_generator.rb
realogy-0.6.1 lib/generators/realogy/install/install_generator.rb
realogy-0.6.0 lib/generators/realogy/install/install_generator.rb
realogy-0.5.9 lib/generators/realogy/install/install_generator.rb
realogy-0.5.4 lib/generators/realogy/install/install_generator.rb
realogy-0.5.3 lib/generators/realogy/install/install_generator.rb
realogy-0.5.2 lib/generators/realogy/install/install_generator.rb
realogy-0.5.1 lib/generators/realogy/install/install_generator.rb
realogy-0.5.0 lib/generators/realogy/install/install_generator.rb
realogy-0.4.9 lib/generators/realogy/install/install_generator.rb
realogy-0.4.8 lib/generators/realogy/install/install_generator.rb
realogy-0.4.7 lib/generators/realogy/install/install_generator.rb
realogy-0.4.6 lib/generators/realogy/install/install_generator.rb
realogy-0.4.5 lib/generators/realogy/install/install_generator.rb