Sha256: 25ea5c55eb246282614ea2b91187fb939d7d59a26d5a97622a23889e33bd5768

Contents?: true

Size: 468 Bytes

Versions: 17

Compression:

Stored size: 468 Bytes

Contents

require 'rails/generators/active_record'

module StarkitBanking
  # Migration generator that creates migration file from template
  class MigrationsGenerator < ActiveRecord::Generators::Base
    source_root File.expand_path("../templates", __FILE__)

    argument :name, :type => :string, :default => 'create_api_steps'
    # Create migration in project's folder
    def generate_files
      migration_template 'api_step.rb', "db/migrate/#{name}.rb"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
starkit_banking-0.1.26 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.25 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.24 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.23 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.22 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.21 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.20 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.18 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.17 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.16 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.15 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.14 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.12 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.11 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.10 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.9 lib/generators/starkit_banking/migrations_generator.rb
starkit_banking-0.1.8 lib/generators/starkit_banking/migrations_generator.rb