Sha256: 7c07c9ca3f680c7e06351843038db9ffbdf5f27a327551e457605c35791fa74b

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

require 'rails/generators'
require 'rails/generators/migration'
require 'rails/generators/active_record'

module UpdateableViewsInheritance
  module Generators
    class InstallGenerator < Rails::Generators::Base
      include Rails::Generators::Migration
      extend ActiveRecord::Generators::Migration
      
      desc "Creates a migration that creates a special table used by the updateable_views_inheritance gem."
      source_root File.expand_path('../templates', __FILE__)
      
      def create_migration
        migration_file = "create_updateable_views_inheritance.rb"
        migration_template migration_file, "db/migrate/#{migration_file}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
updateable_views_inheritance-1.3.0 lib/generators/updateable_views_inheritance/install_generator.rb
updateable_views_inheritance-1.2.2 lib/generators/updateable_views_inheritance/install_generator.rb
updateable_views_inheritance-1.2.1 lib/generators/updateable_views_inheritance/install_generator.rb
updateable_views_inheritance-1.2.0 lib/generators/updateable_views_inheritance/install_generator.rb
updateable_views_inheritance-1.1.2 lib/generators/updateable_views_inheritance/install_generator.rb