Class: AddRemoteBranch

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/gitdocs/migration/002_add_remote_branch.rb

Class Method Summary collapse

Class Method Details

.downObject



7
8
9
# File 'lib/gitdocs/migration/002_add_remote_branch.rb', line 7

def self.down
  raise
end

.upObject



2
3
4
5
# File 'lib/gitdocs/migration/002_add_remote_branch.rb', line 2

def self.up
  add_column :shares, :remote_name, :string, :default => 'origin'
  add_column :shares, :branch_name, :string, :default => 'master'
end