Sha256: d1fc1d7528a1300d34a76ee85ceee23acfe0c1e4abb2df3490261d2c85bb2390

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

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

class MementoMigrationGenerator < Rails::Generators::Base
  include ::Rails::Generators::Migration
  include ActiveRecord::Generators::Migration

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

  def add_memento_migration
    migration_template "migration.rb", 'db/migrate/memento_migration.rb'
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
memento-0.5.2 generators/memento_migration/memento_migration_generator.rb
memento-0.5.1 generators/memento_migration/memento_migration_generator.rb
memento-0.5.0 generators/memento_migration/memento_migration_generator.rb