Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update models annotate

  • Loading branch information...
commit 93538de2fc633d355bfd1921ab08873aab7f8378 1 parent 12e283b
Richard Huang flyerhzm authored
2  app/models/repository.rb
View
@@ -16,7 +16,7 @@
# ssh_url :string(255)
# github_name :string(255)
# builds_count :integer(4) default(0)
-# branch :string(255) default("master"), not null
+# branch :string(255) default("master")
# authentication_token :string(255)
# visible :boolean(1) default(FALSE), not null
# update_configs_url :string(255)
1  app/models/user.rb
View
@@ -20,6 +20,7 @@
# name :string(255)
# github_token :string(255)
# own_repositories_count :integer(4) default(0), not null
+# admin :boolean(1) default(FALSE), not null
#
class User < ActiveRecord::Base
2  app/models/user_repository.rb
View
@@ -5,7 +5,7 @@
# id :integer(4) not null, primary key
# user_id :integer(4)
# repository_id :integer(4)
-# own :boolean(1) default(TRUE), not null
+# own :boolean(1) default(TRUE)
#
class UserRepository < ActiveRecord::Base
4 db/schema.rb
View
@@ -94,7 +94,7 @@
t.string "ssh_url"
t.string "github_name"
t.integer "builds_count", :default => 0
- t.string "branch", :default => "master", :null => false
+ t.string "branch", :default => "master"
t.string "authentication_token"
t.boolean "visible", :default => false, :null => false
t.string "update_configs_url"
@@ -105,7 +105,7 @@
create_table "user_repositories", :force => true do |t|
t.integer "user_id"
t.integer "repository_id"
- t.boolean "own", :default => true, :null => false
+ t.boolean "own", :default => true
end
add_index "user_repositories", ["repository_id"], :name => "index_user_repositories_on_repository_id"
Please sign in to comment.
Something went wrong with that request. Please try again.