Skip to content

Commit

Permalink
seperate into new migration
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Dec 5, 2011
1 parent 57ba417 commit 447e32f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/gitdocs/migration/001_create_shares.rb
Expand Up @@ -4,8 +4,6 @@ def self.up
t.column :path, :string
t.column :polling_interval, :double, :default => 15
t.column :notification, :boolean, :default => true
t.column :remote_name, :string, :default => 'origin'
t.column :branch_name, :string, :default => 'master'
end
end

Expand Down
10 changes: 10 additions & 0 deletions lib/gitdocs/migration/002_add_remote_branch.rb
@@ -0,0 +1,10 @@
class AddRemoteBranch < ActiveRecord::Migration
def self.up
add_column :shares, :remote_name, :string, :default => 'origin'
add_column :shares, :branch_name, :string, :default => 'master'
end

def self.down
raise
end
end
8 changes: 8 additions & 0 deletions lib/gitdocs/views/settings.haml
Expand Up @@ -13,6 +13,14 @@
%dt Polling interval
%dd
%input{:name=>"share[#{idx}][polling_interval]", :value => share.polling_interval}
%dl
%dt Remote
%dd
%input{:name=>"share[#{idx}][remote_name]", :value => share.remote_name}
%dl
%dt Branch
%dd
%input{:name=>"share[#{idx}][branch_name]", :value => share.branch_name}
%dl
%dt Notifications?
%dd
Expand Down

0 comments on commit 447e32f

Please sign in to comment.