Module: Rails::Generators::Database::MySQL
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Defined in: | railties/lib/rails/generators/database.rb |
Instance Method Summary
Instance Method Details
#host
[ GitHub ]# File 'railties/lib/rails/generators/database.rb', line 30
def host "127.0.0.1" end
#name
[ GitHub ]# File 'railties/lib/rails/generators/database.rb', line 9
def name "mysql" end
#port
[ GitHub ]# File 'railties/lib/rails/generators/database.rb', line 13
def port 3306 end
#service
[ GitHub ]# File 'railties/lib/rails/generators/database.rb', line 17
def service { "image" => "mysql:9.7", "restart" => "unless-stopped", "environment" => { "MYSQL_ALLOW_EMPTY_PASSWORD" => "true", "MYSQL_ROOT_HOST" => "%" }, "volumes" => ["mysql-data:/var/lib/mysql"], "networks" => ["default"], } end