Sha256: 9422118ae697d71962237bdf1f59873afdd9cec8b5643816effb03a8fa14eb40

Contents?: true

Size: 571 Bytes

Versions: 14

Compression:

Stored size: 571 Bytes

Contents

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

module Pgcrypto
  module Generators
    class InstallGenerator < Rails::Generators::Base
      include Rails::Generators::Migration
      extend ActiveRecord::Generators::Migration

      source_root File.expand_path('../templates', __FILE__)

      def copy_migration
        migration_template("migration.rb", "db/migrate/install_pgcrypto")
      end

      def create_initializer
        copy_file("initializer.rb", "config/initializers/pgcrypto.rb")
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
pgcrypto-0.3.6 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.3.5 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.3.4 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.3.3 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.3.1 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.2.7 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.2.6 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.2.5 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.2.4 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.2.2 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.2.1 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.2.0 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.1.1 lib/generators/pgcrypto/install/install_generator.rb
pgcrypto-0.1.0 lib/generators/pgcrypto/install/install_generator.rb