123456789_123456789_123456789_123456789_123456789_

Class: Rails::Generators::Database::MySQL2

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Rails::Generators::Database
Defined in: railties/lib/rails/generators/database.rb

Constant Summary

::Rails::Generators::Database - Inherited

DATABASES

Class Method Summary

Instance Method Summary

Instance Method Details

#base_package

[ GitHub ]

  
# File 'railties/lib/rails/generators/database.rb', line 153

def base_package
  "default-mysql-client"
end

#build_package

[ GitHub ]

  
# File 'railties/lib/rails/generators/database.rb', line 157

def build_package
  "default-libmysqlclient-dev"
end

#feature_name

[ GitHub ]

  
# File 'railties/lib/rails/generators/database.rb', line 161

def feature_name
  "ghcr.io/rails/devcontainer/features/mysql-client"
end

#gem

[ GitHub ]

  
# File 'railties/lib/rails/generators/database.rb', line 149

def gem
  ["mysql2", ["~> 0.5"]]
end

#template

[ GitHub ]

  
# File 'railties/lib/rails/generators/database.rb', line 145

def template
  "config/databases/mysql.yml"
end