DB::Migrate
Provides convenient abstractions for creating tables, indexes and general database migrations.
Usage
Please browse the source code index or refer to the guides below.
Getting Started
This guide explains how to get started with db-migrate
for managing database schema changes in Ruby applications.
Migrations
This guide explains how to create and structure database migrations using db-migrate
.
Create Table
This guide explains how to create database tables using db-migrate
.
Alter Table
This guide explains how to modify existing database tables using db-migrate
.
Drop Table
This guide explains how to remove database tables using db-migrate
.
Create Index
This guide explains how to create database indexes using db-migrate
.
Releases
Please browse the releases for more details.
v0.3.0
- Improved database compatibility using standardized feature detection from
DB::Features
. - Add support for
alter_table
operations:rename_column
,change_column
, anddrop_column
. - Enhanced column type changes with database-specific syntax selection.
- Conditional
IF EXISTS
clauses are now only used when supported by the database. - Improved idempotency and safety of migration operations.
Contributing
We welcome contributions to this project.
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin my-new-feature
). - Create new Pull Request.
Developer Certificate of Origin
In order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.
Community Guidelines
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.