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

migrate_factory_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

migrate_factory_rails

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Rails Migrate Factory

Completely rebuild your migrations to agilize setup and simplify schema

Install

gem install migrate_factory_rails

or add to your Gemfile

group :development do
  gem 'migrate_factory_rails'
end

How use

Be careful, rebuild do not cover all situations yet then may miss some migration You can use two commands currently:

  • rake rebuild:migrations -> Will rebuild all your migrations and save on tmp/rebuild, then you can validate if it worths without lose any data.
  • rake rebuild:cleanup -> Will cleanup all data on tmp/rebuild.

Goals

My goal here was the challenge to rebuild every migrations from Rails, matching as close as possible the final schema.rb meanwhile reducing strongly the amount of migrations. Specially on old projects, there will be a lot ot migrations, sometimes for a single column or index which extends the setup for a few seconds. If is worth or not to use, feel free to discuss.

Author

  • Diogo

FAQs

Package last updated on 04 Aug 2024

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