{"id":13878757,"url":"https://github.com/RenoFi/fishplate","last_synced_at":"2025-07-16T14:32:50.507Z","repository":{"id":45550337,"uuid":"218048915","full_name":"RenoFi/fishplate","owner":"RenoFi","description":"Fishplate is a library allowing running ActiveRecord without Railties","archived":false,"fork":false,"pushed_at":"2024-11-22T10:39:16.000Z","size":205,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":18,"default_branch":"main","last_synced_at":"2024-11-22T11:26:58.612Z","etag":null,"topics":["backend"],"latest_commit_sha":null,"homepage":"","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/RenoFi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-28T13:08:15.000Z","updated_at":"2024-11-22T10:33:35.000Z","dependencies_parsed_at":"2023-10-02T07:45:27.210Z","dependency_job_id":"edd8f900-0ed8-4fbc-9880-f14af8324c25","html_url":"https://github.com/RenoFi/fishplate","commit_stats":{"total_commits":196,"total_committers":9,"mean_commits":21.77777777777778,"dds":"0.14795918367346939","last_synced_commit":"75506aa18834b020221845599268984548ff32f6"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RenoFi%2Ffishplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RenoFi%2Ffishplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RenoFi%2Ffishplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RenoFi%2Ffishplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RenoFi","download_url":"https://codeload.github.com/RenoFi/fishplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226138849,"owners_count":17579496,"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":["backend"],"created_at":"2024-08-06T08:01:58.947Z","updated_at":"2024-11-24T07:31:17.874Z","avatar_url":"https://github.com/RenoFi.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/fishplate.svg)](https://rubygems.org/gems/fishplate)\n[![Build Status](https://github.com/RenoFi/fishplate/actions/workflows/ci.yml/badge.svg)](https://github.com/RenoFi/fishplate/actions/workflows/ci.yml?query=branch%3Amain)\n\n# fishplate\n\n`fishplate` is a library to run `ActiveRecord` without `railties` gem\n\n![fishplate](https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Fishplate_UK_2006.jpg/440px-Fishplate_UK_2006.jpg \"Fishplate\")\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'fishplate'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install fishplate\n\n## Usage\n\nAdd to your environment.rb file:\n\n\n```ruby\nFishplate.logger = A9n.logger # or any other logger\nFishplate.time_zone = 'UTC'\nFishplate.setup!\n```\n\nTo load rake tasks, add to your `Rakefile`:\n\n```ruby\nFishplate.load_tasks\n```\n\nAvailable rake tasks are:\n```\nrake console                            # Run application console\nrake generate:migration[name]           # Generate new migration with name given, e.g rake generate:migration[CreateUsers]\n\nrake db:create                          # Creates the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:create:all to create all databases in the config). Wi...\nrake db:drop                            # Drops the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:drop:all to drop all databases in the config). Without ...\nrake db:environment:set                 # Set the environment value for the database\nrake db:fixtures:load                   # Loads fixtures into the current environment's database\nrake db:migrate                         # Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)\nrake db:migrate:status                  # Display status of migrations\nrake db:prepare                         # Runs setup if database does not exist, or runs migrations if it does\nrake db:rollback                        # Rolls the schema back to the previous version (specify steps w/ STEP=n)\nrake db:schema:cache:clear              # Clears a db/schema_cache.yml file\nrake db:schema:cache:dump               # Creates a db/schema_cache.yml file\nrake db:schema:dump                     # Creates a db/schema.rb file that is portable against any DB supported by Active Record\nrake db:schema:load                     # Loads a schema.rb file into the database\nrake db:seed                            # Loads the seed data from db/seeds.rb\nrake db:seed:replant                    # Truncates tables of each database for current environment and loads the seeds\nrake db:setup                           # Creates the database, loads the schema, and initializes with the seed data (use db:reset to also drop the database first) / Setup database\nrake db:structure:dump                  # Dumps the database structure to db/structure.sql\nrake db:structure:load                  # Recreates the databases from the structure.sql file\nrake db:version                         # Retrieves the current schema version number\n```\n\n### Rack Middleware\n\nTo free up DB connections after each request, add middleware to your `config.ru`: \n```ruby\nuse Fishplate::Rack\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/RenoFi/fishplate. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\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%2FRenoFi%2Ffishplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRenoFi%2Ffishplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRenoFi%2Ffishplate/lists"}