9d14c5137a
Drop default_branch field from projects table Use repository.root_ref as value for defautl_branch method Fixes issue with default_branch and HEAD getting out of sync Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
9 lines
185 B
Ruby
9 lines
185 B
Ruby
class RemoveDefaultBranch < ActiveRecord::Migration
|
|
def up
|
|
remove_column :projects, :default_branch
|
|
end
|
|
|
|
def down
|
|
add_column :projects, :default_branch, :string
|
|
end
|
|
end
|