Skip to content

Grinta/moulinettes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moulinettes

moulinettes logo

A simple template to run any data migrations within your Rails app.

Installation

Add this line to your application's Gemfile:

gem "moulinettes"

Usage

Generate a new moulinette using the generator:

  # Both syntaxes are valid and will generate the same file
  bundle exec rails g moulinettes:moulinette MyMoulinette 
  bundle exec rails g moulinettes:moulinette my_moulinette 

This will generate a new file in lib/tasks/moulinettes using the template provided in the gem.

Options

You can also pass the following options to the generator:

  • --editor or -e to specify the editor to be used to open the file. Default is $EDITOR.
  • --open or -o to flag the file to be opened in your default editor after generation. Default is true.

You can then run the task using the following command:

  bundle exec rails moulinettes:my_moulinette

Releases

No releases published

Packages

No packages published

Languages