Sha256: 37f94a0c588a9d3e2c1a7c86fe5c2406aa8b4dc133e7a6dd4d0c700a482a32b7

Contents?: true

Size: 557 Bytes

Versions: 8

Compression:

Stored size: 557 Bytes

Contents

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

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

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

    desc 'Generates (but does not run) a migration to add a versions table.'

    def create_migration_file
      migration_template 'create_record_histories.rb', 'db/migrate/create_record_histories.rb'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
record_history-0.8.7 lib/generators/record_history/install_generator.rb
record_history-0.8.6 lib/generators/record_history/install_generator.rb
record_history-0.8.5 lib/generators/record_history/install_generator.rb
record_history-0.8.4 lib/generators/record_history/install_generator.rb
record_history-0.8.3 lib/generators/record_history/install_generator.rb
record_history-0.8.2 lib/generators/record_history/install_generator.rb
record_history-0.0.2 lib/generators/record_history/install_generator.rb
record_history-0.0.1 lib/generators/record_history/install_generator.rb