Sha256: 408b093497ee282b4aec1613d9d58317f35ed09740c924350fb351cf62457580
Contents?: true
Size: 728 Bytes
Versions: 2
Compression:
Stored size: 728 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' require 'active_record' require 'rails/generators/active_record' require 'generators/audited/migration' require 'generators/audited/migration_helper' module Audited module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration include Audited::Generators::MigrationHelper extend Audited::Generators::Migration class_option :audited_changes_column_type, type: :string, default: "text", required: false source_root File.expand_path("../templates", __FILE__) def copy_migration migration_template 'install.rb', 'db/migrate/install_audited.rb' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
audited-4.4.1 | lib/generators/audited/install_generator.rb |
audited-4.4.0 | lib/generators/audited/install_generator.rb |