patch.diff

Version 2 of Akiko's Patch - Daniel Felix, 2013-01-05 21:22

Download (749 Bytes)

View differences:

db/migrate/091_change_changesets_revision_to_string.rb (working copy)
1 1
class ChangeChangesetsRevisionToString < ActiveRecord::Migration
2 2
  def self.up
3
    remove_index  :changesets, :name => :changesets_repos_rev
3
    if index_exists? :changesets, :changesets_repos_rev
4
    	remove_index  :changesets, :name => :changesets_repos_rev
5
    end
4 6
    change_column :changesets, :revision, :string, :null => false
5 7
    add_index :changesets, [:repository_id, :revision], :unique => true, :name => :changesets_repos_rev
6 8
  end