Project

megegen

0.0
No commit activity in last 3 years
No release in over 3 years
ActiveRecord timestamped migrations generator - It knows how to invoke Rails's ActiveRecord generator So you can use Rails Migration Generator without include Rails in your project.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.9
>= 0
~> 10.0
>= 0
 Project Readme

Mege.Gen

ActiveRecord timestamped migrations generator - It knows how to invoke Rails's ActiveRecord generator.

So you can use Rails Migration Generator without include Rails in your project.


NOTE: Mege.Gen can only generates ActiveRecord timestamped migrations

NOTE: Please use 0.2.1 and above


MegeGen provides two interfaces to Rails's Migration Generator

  • CLI
  • db Rake Task

Via CLI Interface

Install megegen as gem locally Then you will have megegen as command

gem install megegen
cd <project>
megegen generate <NameOfMigration>

Via Rake Task

Include this gem in your Gemfile

gem 'megegen', '0.2.0'

Then in your Rakefile

require 'megegen'

Type the following command in your console

bundle exec rake -T db