Sha256: 35d5a0e746462e43577f0b86ebb3bc6e34667d4c6829297ccf3d89f974664aca

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

require 'rails/generators/active_record'

module SecondStep
  class InitializerGenerator < Rails::Generators::NamedBase
    include Rails::Generators::Migration
    source_root File.expand_path("../templates", __FILE__)
    def create_migration
      migration_template 'migration.rb', 'db/migrate/create_secondstep_tables.rb'
    end
    def self.next_migration_number(dirname)
      ActiveRecord::Generators::Base.next_migration_number(dirname)
    end
  end
end

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
second_step-0.2.0 lib/generators/second_step/migration/migration_generator.rb
second_step-0.1.4 lib/generators/second_step/migration/migration_generator.rb
second_step-0.1.3 lib/generators/second_step/migration/migration_generator.rb
second_step-0.1.2 lib/generators/second_step/migration/migration_generator.rb
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/second_step-0.1.1/lib/generators/second_step/migration/migration_generator.rb