
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
The term "Dorp" is the word in Dutch/Afrikaans that mean 'village', symbolizing the gem's capacity for managing multiple distinct 'tenants' in a single application.
Key Features:
The goal of the gem is to leverage to the maximum rails multi db feature.
To install the Dorp gem, add this line to your project's Gemfile:
gem 'dorp'
To start, you need to cha
To migrate the the the database yaml from from a single database to multiple databases, you can use the following command:
Before:
development:
adapter: postgresql
database: myapp_development
....
After:
development:
main:
adapter: postgresql
database: myapp_development
primary: true
....
hamlets:
adapter: postgresql
database: myapp_tenants_development
migrations_paths: db/tenants_migrate ## Those are the migrations that will be run for each tenant
To create a new tenant, you can use the following command:
Dorp::Tenant.create(name: 'my_tenant', subdomain: 'my_tenant')
Before starting, an abstract model must be created. This model will be used as a base for all the models that will be created for each tenant.
class TenantRecord < ApplicationRecord
self.abstract_class = true
include Dorp::TenantRecord
end
Then, you can create a new model that will be used for each tenant:
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/seuros/dorp.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
FAQs
Unknown package
We found that dorp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.