Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bird_migration

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bird_migration

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

BirdMigration

Let's assume you have 3 pending migrations with no order.

Status Migration ID Migration Name

up 20181029224028 Create users
down 20181029224048 Create add surname to users
up 20181029224059 Create posts
up 20181029224112 Create test los
down 20181029224146 Create lalas
down 20181029224451 Lololo

And some of them (let it be '20181029224451 Lololo') is broken.
And you are going to deploy that code somewhere.
So if you simply run rake db:migrate you will have on the server
two passed migrations and an error.

Status Migration ID Migration Name

up 20181029224028 Create users
up 20181029224048 Create add surname to users
up 20181029224059 Create posts
up 20181029224112 Create test los
up 20181029224146 Create lalas
down 20181029224451 Lololo

So state was not reverted to the same what was before rake db:migrate state.

gem 'birds_migrations' will give you ability to do "all or nothing" migrations.

Usage

rake birds:migrate

Installation

Add this line to your application's Gemfile:

gem 'bird_migration'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bird_migration

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 10 Jan 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc