Skip to content

jasonswett/migration_builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migration Builder

Migration Builder is an interactive command-line tool that builds Rails migrations. The goal is for Migration Builder to be able to generate 95% of common migration types without having to google the Rails migration syntax.

Note: Migration Builder is currently in an EXTREMELY early stage of development, so set your expectations accordingly.

Usage

To start the Migration Builder prompt, run:

$ rails mb:start

Installation

Add this line to your application's Gemfile:

group :development do
  gem 'migration_builder', git: 'https://github.com/jasonswett/migration_builder'
end

And then execute:

$ bundle

Or install it yourself as:

$ gem install migration_builder

Capabilities

Migration Builder features currently include:

  • Adding columns on existing tables (including null constraints)
  • Removing columns from existing tables
  • Renaming existing tables
  • Adding unique indexes (including compound unique indexes)
  • Creating new tables
  • Dropping existing tables

Feedback and contributing

This is my first swing at OSS and I have no idea how it works. If you find a bug (which is really easy at this stage!) or have a feature idea (also easy since Migration Builder does almost nothing so far!), feel free to open an issue on this repo.

License

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

About

Interactive command-line tool to build Rails migrations

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
MIT-LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published