Methods
Included Modules
Instance Public methods
base_package()
📝 Source code
# File railties/lib/rails/generators/database.rb, line 199
def base_package
nil
end
🔎 See on GitHub
build_package()
📝 Source code
# File railties/lib/rails/generators/database.rb, line 203
def build_package
nil
end
🔎 See on GitHub
feature_name()
📝 Source code
# File railties/lib/rails/generators/database.rb, line 207
def feature_name
nil
end
🔎 See on GitHub
gem()
📝 Source code
# File railties/lib/rails/generators/database.rb, line 195
def gem
["trilogy", ["~> 2.7"]]
end
🔎 See on GitHub
name()
📝 Source code
# File railties/lib/rails/generators/database.rb, line 175
def name
"mariadb"
end
🔎 See on GitHub
port()
📝 Source code
# File railties/lib/rails/generators/database.rb, line 191
def port
3306
end
🔎 See on GitHub
service()
📝 Source code
# File railties/lib/rails/generators/database.rb, line 179
def service
{
"image" => "mariadb:10.5",
"restart" => "unless-stopped",
"networks" => ["default"],
"volumes" => ["mariadb-data:/var/lib/mysql"],
"environment" => {
"MARIADB_ALLOW_EMPTY_ROOT_PASSWORD" => "true",
},
}
end
🔎 See on GitHub