方法
- B
- F
- G
- N
- P
- S
- T
实例公共方法
base_package() 链接
来源:显示 | 在 GitHub 上
# File railties/lib/rails/generators/database.rb, line 196 def base_package "postgresql-client" end
build_package() 链接
来源:显示 | 在 GitHub 上
# File railties/lib/rails/generators/database.rb, line 200 def build_package "libpq-dev" end
feature_name() 链接
来源:显示 | 在 GitHub 上
# File railties/lib/rails/generators/database.rb, line 204 def feature_name "ghcr.io/rails/devcontainer/features/postgres-client" end
gem() 链接
来源:显示 | 在 GitHub 上
# File railties/lib/rails/generators/database.rb, line 192 def gem ["pg", ["~> 1.1"]] end
name() 链接
来源:显示 | 在 GitHub 上
# File railties/lib/rails/generators/database.rb, line 167 def name "postgres" end
port() 链接
来源:显示 | 在 GitHub 上
# File railties/lib/rails/generators/database.rb, line 188 def port 5432 end
service() 链接
来源:显示 | 在 GitHub 上
# File railties/lib/rails/generators/database.rb, line 175 def service { "image" => "postgres:16.1", "restart" => "unless-stopped", "networks" => ["default"], "volumes" => ["postgres-data:/var/lib/postgresql/data"], "environment" => { "POSTGRES_USER" => "postgres", "POSTGRES_PASSWORD" => "postgres" } } end
template() 链接
来源:显示 | 在 GitHub 上
# File railties/lib/rails/generators/database.rb, line 171 def template "config/databases/postgresql.yml" end