Feature #12713 » patch.diff
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 |