Methods

Included Modules

Instance Public methods

base_package()

📝 Source code
# File railties/lib/rails/generators/database.rb, line 120
        def base_package
          "default-mysql-client"
        end
🔎 See on GitHub

build_package()

📝 Source code
# File railties/lib/rails/generators/database.rb, line 124
        def build_package
          "default-libmysqlclient-dev"
        end
🔎 See on GitHub

feature_name()

📝 Source code
# File railties/lib/rails/generators/database.rb, line 128
        def feature_name
          "ghcr.io/rails/devcontainer/features/mysql-client"
        end
🔎 See on GitHub

gem()

📝 Source code
# File railties/lib/rails/generators/database.rb, line 116
        def gem
          ["mysql2", ["~> 0.5"]]
        end
🔎 See on GitHub

name()

📝 Source code
# File railties/lib/rails/generators/database.rb, line 95
        def name
          "mysql"
        end
🔎 See on GitHub

port()

📝 Source code
# File railties/lib/rails/generators/database.rb, line 112
        def port
          3306
        end
🔎 See on GitHub

service()

📝 Source code
# File railties/lib/rails/generators/database.rb, line 99
        def service
          {
            "image" => "mysql/mysql-server:8.0",
            "restart" => "unless-stopped",
            "environment" => {
              "MYSQL_ALLOW_EMPTY_PASSWORD" => "true",
              "MYSQL_ROOT_HOST" => "%"
            },
            "volumes" => ["mysql-data:/var/lib/mysql"],
            "networks" => ["default"],
          }
        end
🔎 See on GitHub