Low commit activity in last 3 years
No release in over a year
SQL only migrations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 3.0
~> 1.0

Runtime

~> 13.0
 Project Readme

Simple Migrations

Rake tasks for basic migration management

Usage

Here's an example using Postgres, but any SQL database should be fine. Add the following to your Rakefile:

require 'simple_migrations'
require 'pg'

namespace :migrate do
  task :connect do
    # pretend this was loaded from a file or ENV
    conf = { host: '192.168.33.10', user: 'postgres', dbname: 'migrations_development' }

    # Using Postgres here, but any DB should be fine
    conn = PG::Connection.new(conf)

    # set up a block that allows SimpleMigrations run SQL
    SimpleMigrations.sql_executor do |sql|
      conn.exec(sql)
    end
  end
end

License

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