Class: Rails::Generators::Database::MySQL2
Constant Summary
DATABASES
Instance Method Summary
collapse
Methods included from MySQL
#host, #name, #port, #service, #socket
all, build, #feature, #host, #name, #port, #service, #socket, #volume
Instance Method Details
#base_package ⇒ Object
153
154
155
|
# File 'lib/rails/generators/database.rb', line 153
def base_package
"default-mysql-client"
end
|
#build_package ⇒ Object
157
158
159
|
# File 'lib/rails/generators/database.rb', line 157
def build_package
"default-libmysqlclient-dev"
end
|
#feature_name ⇒ Object
161
162
163
|
# File 'lib/rails/generators/database.rb', line 161
def feature_name
"ghcr.io/rails/devcontainer/features/mysql-client"
end
|
#gem ⇒ Object
149
150
151
|
# File 'lib/rails/generators/database.rb', line 149
def gem
["mysql2", ["~> 0.5"]]
end
|
#template ⇒ Object
145
146
147
|
# File 'lib/rails/generators/database.rb', line 145
def template
"config/databases/mysql.yml"
end
|