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