Sha256: 9d214a04b0778b0a961780ae6ac7b9b8399b3bd6aa4ee75ac4cc429bbc207b2c

Contents?: true

Size: 468 Bytes

Versions: 20

Compression:

Stored size: 468 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

20 entries across 20 versions & 1 rubygems

Version Path
doorkeeper-1.1.0 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-1.0.0 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-1.0.0.rc2 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-1.0.0.rc1 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.7.4 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.7.3 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.7.2 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.7.1 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.7.0 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.6.7 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.6.6 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.6.5 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.6.4 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.6.3 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.6.2 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.6.1 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.6.0 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.6.0.rc1 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.5.0 lib/generators/doorkeeper/migration_generator.rb
doorkeeper-0.5.0.rc1 lib/generators/doorkeeper/migration_generator.rb