No release in over a year
Adds data migrations support to Mina
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.3.5
>= 0

Runtime

~> 1.0
 Project Readme

Gem Version

Mina::DataMigrate

Plugin for Mina that adds support for data migrations

Installation & Usage

Add this line to your application's Gemfile:

gem 'mina-data-migrate', require: false

And then execute:

$ bundle

Require mina/data-migrate in your config/deploy.rb:

require 'mina/data_migrate'
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'

...

task setup: :environment do
  ...
end

desc 'Deploys the current version to the server.'
task deploy: :environment do
  ...
end

Update deploy task:

# config/deploy.rb

desc 'Deploys the current version to the server.'
task deploy: :environment do
  ... 
  # remove this line
  # invoke :'rails:db_migrate'
  
  # add new task
  invoke :'rails:db_data_migrate'
  ...
end

Configuration

  • data_migration_dirs - array of dirs with data migrations (['db/data'] by default)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request