github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

ericgoodwin / gitty-migrations

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 7
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Run you migrations against certain git changelists — Read more

  cancel

http://blog.ericgoodwin.com/2008/3/20/gitty-migrations

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added rescue blocks incase getting the proper revision fails 
ericgoodwin (author)
Mon Mar 31 11:04:51 -0700 2008
commit  7c6e495f29fd3c49bb5059451fcaf0a59969de8a
tree    88be3c8d0e1a0b1ebf6c874c9501ddea1f286816
parent  0fdf502ece8922723be1fd54df4bbe0b9f5de11c
gitty-migrations /
name age
history
message
file .gitignore Loading commit data...
file MIT-LICENSE
file README
file Rakefile
directory extended_rubygit_gem/
file init.rb
file install.rb
directory lib/
directory tasks/
directory test/
file uninstall.rb
README
GittyMigrations
===============

Requires a extended 'rubygit' gem that has stashes
cd vendor/plugins/gitty_migrations/extended_rubygit_gem
sudo gem install git-1.0.5

Example
=======

class MyMigration < ActiveRecord::Migration
  
  # Will rollback to the commit that this file was checked in on
  use_git
 
  # Will rollback to a certain commit that you define
  # use_git :revision => "2024589c214b41c8b29bcd6444c2d49807760a5a"

  def self.up
    puts "This is a test migration"
  end

  def self.down
    
  end
  
end

TODO
===============

√  Check for the revision where the migration was checked in or last edited and 
  automatically use that revision if no revision has been specified
* If there are no stashes then clear the stash when we are done with the migrations
  
  
Copyright (c) 2008 Eric Goodwin, released under the MIT license
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server