public
Description: Run you migrations against certain git changelists
Homepage: http://blog.ericgoodwin.com/2008/3/20/gitty-migrations
Clone URL: git://github.com/ericgoodwin/gitty-migrations.git
gitty-migrations / README
100644 37 lines (24 sloc) 0.844 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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