Sha256: 60d8efafde54c5c6bb65972ab366390638ce1b8253e6e79749b3c58cec6f9b69

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

require 'rails/generators/active_record/migration'

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

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

  desc "Creates the migration for the `captain_configs' table."

  def create_captain_configs_migration
    migration_template 'create_captain_configs.rb.tt', "#{db_migrate_path}/create_captain_configs.rb"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
captain_config-1.1.0 lib/generators/captain_config_generator.rb
captain_config-1.0.0 lib/generators/captain_config_generator.rb