Data integrity is a good thing. Constraining the values allowed by your application at the database level, rather than at the application level, is a more robust way of ensuring your data stays sane. Unfortunately, ActiveRecord doesn't encourage (or even allow) you to use database integrity without resorting to hand-crafted SQL. Rein (pronounced "rain") adds a handful of methods to your ActiveRecord migrations so that you can easily tame the data in your database. All methods in the DSL are automatically reversible, so you can take advantage of reversible Rails migrations.

Features

  • Documentation available
  • Foreign Key Constraints
  • Examples available
  • Unique Constraints
  • Exclusion Constraints
  • Match constraints and validate constraints
  • Enumerated Types
  • A database can contain one or more named schemas

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Rein

Rein Web Site

Other Useful Business Software
MicroStation by Bentley Systems is the trusted computer-aided design (CAD) software built specifically for infrastructure design. Icon
MicroStation by Bentley Systems is the trusted computer-aided design (CAD) software built specifically for infrastructure design.

Microstation enables architects, engineers, and designers to create precise 2D and 3D drawings that bring complex projects to life.

MicroStation is the only computer-aided design software for infrastructure design, helping architects and engineers like you bring their vision to life, present their designs to their clients, and deliver their projects to the community.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Rein!

Additional Project Details

Programming Language

Ruby

Related Categories

Ruby Libraries

Registered

2024-05-31