{"id":18449259,"url":"https://github.com/sqldef/sqldef-rails","last_synced_at":"2025-04-08T01:32:47.824Z","repository":{"id":59156150,"uuid":"347329129","full_name":"sqldef/sqldef-rails","owner":"sqldef","description":"Rails integration for sqldef","archived":false,"fork":false,"pushed_at":"2022-03-09T07:26:53.000Z","size":18,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-23T03:51:17.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":false,"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/sqldef.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-13T09:37:31.000Z","updated_at":"2023-12-10T19:24:02.000Z","dependencies_parsed_at":"2022-09-13T17:51:04.753Z","dependency_job_id":null,"html_url":"https://github.com/sqldef/sqldef-rails","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqldef%2Fsqldef-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqldef%2Fsqldef-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqldef%2Fsqldef-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqldef%2Fsqldef-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sqldef","download_url":"https://codeload.github.com/sqldef/sqldef-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247760671,"owners_count":20991525,"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-06T07:19:24.838Z","updated_at":"2025-04-08T01:32:47.577Z","avatar_url":"https://github.com/sqldef.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqldef-rails\n\nRun [sqldef](https://github.com/k0kubun/sqldef) on Rails.\n\n## Installation\n\n```ruby\ngem 'sqldef-rails'\n```\n\n## Usage\n### Configuration\n\nJust configure `config/database.yml` normally.\n\n```yml\ndefault: \u0026default\n  adapter: postgresql\n  username: postgres\n  password:\n  host: 127.0.0.1\n\ndevelopment:\n  \u003c\u003c: *default\n  database: sqldef_development\n\ntest:\n  \u003c\u003c: *default\n  database: sqldef_test\n```\n\n### Export\n\nDump the current schema to `db/schema.sql`.\n\n```bash\nbundle exec rake db:schema:dump\n```\n\nYou may use `bin/rails` instead of `bundle exec rake` too.\n\n### Dry Run\n\nYou can show DDLs to be executed to match `db/schema.sql`.\n\n```bash\nbundle exec rake db:migrate:status\n```\n\n### Aplly\n\nYou can run DDLs to match `db/schema.sql`.\n\n```bash\nbundle exec rake db:migrate\n```\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqldef%2Fsqldef-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqldef%2Fsqldef-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqldef%2Fsqldef-rails/lists"}