Sha256: 813a2bc6398ed3e334fbd2f1c3f4fa04bdf1332cd804fcf283a7977b68a83cd9

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

require 'rails/generators/active_record'

class Doorkeeper::MigrationGenerator < ::Rails::Generators::Base
  include Rails::Generators::Migration
  source_root File.expand_path('../templates', __FILE__)
  desc "Installs Doorkeeper migration file."

  def install
    migration_template 'migration.rb', 'db/migrate/create_doorkeeper_tables.rb'
  end

  def self.next_migration_number(dirname)
    ActiveRecord::Generators::Base.next_migration_number(dirname)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
couchkeeper-0.6.7 lib/generators/doorkeeper/migration_generator.rb