{"id":19530126,"url":"https://github.com/tpope/rails-default-database","last_synced_at":"2025-04-26T12:30:43.469Z","repository":{"id":1280276,"uuid":"1219752","full_name":"tpope/rails-default-database","owner":"tpope","description":"Make database.yml optional in Rails","archived":false,"fork":false,"pushed_at":"2021-05-27T17:10:33.000Z","size":20,"stargazers_count":49,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T07:55:00.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubygems.org/gems/rails-default-database","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpope.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-04T15:38:27.000Z","updated_at":"2025-02-07T19:59:14.000Z","dependencies_parsed_at":"2022-08-16T12:55:10.272Z","dependency_job_id":null,"html_url":"https://github.com/tpope/rails-default-database","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Frails-default-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Frails-default-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Frails-default-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Frails-default-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpope","download_url":"https://codeload.github.com/tpope/rails-default-database/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250986218,"owners_count":21518465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T01:29:07.375Z","updated_at":"2025-04-26T12:30:43.204Z","avatar_url":"https://github.com/tpope.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails Default Database\n\nTired of `cp config/database.example.yml config/database.yml`? Me too.\nThat's why I wrote this Gem.  Simply add this line to your Gemfile and\nPostgreSQL, MySQL, or SQLite3 (depending on which of the 3 is in your\nGemfile) will be automatically configured with Rails defaults:\n\n    gem 'rails-default-database'\n\nYou can still override the defaults by creating `config/database.yml`.\nUse `rake db:config` to create `config/database.yml` with the defaults\nthat would have been assumed.\n\nThe default database name is based on the name of the root directory of your\napplication.  This can be overridden by setting\n`config.database_name = 'foo_%s'` in `config/application.rb`, with `%s` being\na placeholder for the current environment name.\n\nAs in standard Rails, the `DATABASE_URL` environment variable takes\nprecedence when defined.  However, in the test environment, Rails Default\nDatabase will append `_test` to the database name (after stripping an optional\nexisting environment suffix), ensuring the development (or production!)\ndatabase is never clobbered.  This enables storing your database configuration\nin [`.env`](https://github.com/bkeepers/dotenv), if you so choose.\n\n## License\n\nCopyright (c) Tim Pope.  MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Frails-default-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpope%2Frails-default-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Frails-default-database/lists"}