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

Inherits:
Rails::Generators::Database show all
Includes:
MySQL
Defined in:
lib/rails/generators/database.rb

Direct Known Subclasses

MariaDBMySQL2

Constant Summary

Constants inherited from Rails::Generators::Database

DATABASES

Instance Method Summary collapse

Methods included from MySQL

#host, #name, #port, #service, #socket

Methods inherited from Rails::Generators::Database

all, build, #feature, #host, #name, #port, #service, #socket, #volume

Instance Method Details

#base_packageObject



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

def base_package
  "default-mysql-client"
end

#build_packageObject



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

def build_package
  "default-libmysqlclient-dev"
end

#feature_nameObject



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

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

#gemObject



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

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

#templateObject



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

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