Sha256: a3b46647f7395a6090c12410993500f72b92f80c3ddf54c9731e39a91e8851f6

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

module Masshtab
  class DatabaseGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)

    class_option :application_name, type: :string, default: Rails.application.class.parent_name.underscore, desc: 'Rails application name'

    def mysql2_gem
      gem 'mysql2'
    end

    def database_yml
      template 'database.yml', Rails.root.join('config', 'database.yml')
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
masshtab_dev_tools-0.0.4 lib/generators/masshtab/database/database_generator.rb
masshtab_dev_tools-0.0.3 lib/generators/masshtab/database/database_generator.rb