Handle not ready repos
[gitorious.git] / db / migrate / 20091006082442_make_merge_requests_commentable.rb
blobdad8e05f3f6871b89b860771735280c6348e7218
1 class MakeMergeRequestsCommentable < ActiveRecord::Migration
2   def self.up
3     columns.each do |name, type|
4       add_column :comments, name, type
5     end
6   end
8   def self.down
9     columns.each do |name, type|
10       remove_column :comments, name
11     end
12   end
14   def self.columns
15     [
16      [:path, :string],
17      [:first_line_number, :integer],
18      [:number_of_lines, :integer]
19     ]
20   end
21 end