OSDN Git Service

reannotated
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 15 Mar 2013 13:16:02 +0000 (15:16 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 15 Mar 2013 13:16:02 +0000 (15:16 +0200)
17 files changed:
app/models/group.rb
app/models/issue.rb
app/models/merge_request.rb
app/models/milestone.rb
app/models/namespace.rb
app/models/project.rb
app/models/user.rb
app/models/user_team.rb
spec/factories/user_teams.rb
spec/models/group_spec.rb
spec/models/issue_spec.rb
spec/models/merge_request_spec.rb
spec/models/milestone_spec.rb
spec/models/namespace_spec.rb
spec/models/project_spec.rb
spec/models/user_spec.rb
spec/models/user_team_spec.rb

index 7651ce2..5d838d2 100644 (file)
@@ -4,12 +4,12 @@
 #
 #  id          :integer          not null, primary key
 #  name        :string(255)      not null
-#  description :string(255)      not null
 #  path        :string(255)      not null
 #  owner_id    :integer          not null
 #  created_at  :datetime         not null
 #  updated_at  :datetime         not null
 #  type        :string(255)
+#  description :string(255)      default(""), not null
 #
 
 class Group < Namespace
index f01cad0..54d9af7 100644 (file)
@@ -9,11 +9,11 @@
 #  project_id   :integer
 #  created_at   :datetime         not null
 #  updated_at   :datetime         not null
-#  state        :string           default(FALSE), not null
 #  position     :integer          default(0)
 #  branch_name  :string(255)
 #  description  :text
 #  milestone_id :integer
+#  state        :string(255)
 #
 
 class Issue < ActiveRecord::Base
index 354a95e..9d42b1e 100644 (file)
@@ -9,14 +9,14 @@
 #  author_id     :integer
 #  assignee_id   :integer
 #  title         :string(255)
-#  state         :string(255)      not null
 #  created_at    :datetime         not null
 #  updated_at    :datetime         not null
 #  st_commits    :text(2147483647)
 #  st_diffs      :text(2147483647)
-#  merge_status  :integer          default(1), not null
-#
 #  milestone_id  :integer
+#  state         :string(255)
+#  merge_status  :string(255)
+#
 
 require Rails.root.join("app/models/commit")
 require Rails.root.join("lib/static_model")
index d822a68..2a9b9e4 100644 (file)
@@ -7,9 +7,9 @@
 #  project_id  :integer          not null
 #  description :text
 #  due_date    :date
-#  closed      :boolean          default(FALSE), not null
 #  created_at  :datetime         not null
 #  updated_at  :datetime         not null
+#  state       :string(255)
 #
 
 class Milestone < ActiveRecord::Base
index c6b3e94..e8b7d0c 100644 (file)
@@ -4,12 +4,12 @@
 #
 #  id          :integer          not null, primary key
 #  name        :string(255)      not null
-#  description :string(255)      not null
 #  path        :string(255)      not null
 #  owner_id    :integer          not null
 #  created_at  :datetime         not null
 #  updated_at  :datetime         not null
 #  type        :string(255)
+#  description :string(255)      default(""), not null
 #
 
 class Namespace < ActiveRecord::Base
index 07ba7fc..458ef18 100644 (file)
 #  creator_id             :integer
 #  default_branch         :string(255)
 #  issues_enabled         :boolean          default(TRUE), not null
-#  issues_tracker         :string           not null
 #  wall_enabled           :boolean          default(TRUE), not null
 #  merge_requests_enabled :boolean          default(TRUE), not null
 #  wiki_enabled           :boolean          default(TRUE), not null
 #  namespace_id           :integer
 #  public                 :boolean          default(FALSE), not null
+#  issues_tracker         :string(255)      default("gitlab"), not null
+#  issues_tracker_id      :string(255)
 #
 
 require "grit"
index 2b6eebf..c73353b 100644 (file)
 #  linkedin               :string(255)      default(""), not null
 #  twitter                :string(255)      default(""), not null
 #  authentication_token   :string(255)
-#  dark_scheme            :boolean          default(FALSE), not null
 #  theme_id               :integer          default(1), not null
 #  bio                    :string(255)
-#  state                  :string(255)
 #  failed_attempts        :integer          default(0)
 #  locked_at              :datetime
 #  extern_uid             :string(255)
@@ -33,6 +31,8 @@
 #  username               :string(255)
 #  can_create_group       :boolean          default(TRUE), not null
 #  can_create_team        :boolean          default(TRUE), not null
+#  state                  :string(255)
+#  color_scheme_id        :integer          default(1), not null
 #
 
 class User < ActiveRecord::Base
index d5b7585..5de2ac6 100644 (file)
@@ -2,12 +2,13 @@
 #
 # Table name: user_teams
 #
-#  id         :integer          not null, primary key
-#  name       :string(255)
-#  path       :string(255)
-#  owner_id   :integer
-#  created_at :datetime         not null
-#  updated_at :datetime         not null
+#  id          :integer          not null, primary key
+#  name        :string(255)
+#  path        :string(255)
+#  owner_id    :integer
+#  created_at  :datetime         not null
+#  updated_at  :datetime         not null
+#  description :string(255)      default(""), not null
 #
 
 class UserTeam < ActiveRecord::Base
index 8d1ee11..3aeea40 100644 (file)
@@ -2,12 +2,13 @@
 #
 # Table name: user_teams
 #
-#  id         :integer          not null, primary key
-#  name       :string(255)
-#  path       :string(255)
-#  owner_id   :integer
-#  created_at :datetime         not null
-#  updated_at :datetime         not null
+#  id          :integer          not null, primary key
+#  name        :string(255)
+#  path        :string(255)
+#  owner_id    :integer
+#  created_at  :datetime         not null
+#  updated_at  :datetime         not null
+#  description :string(255)      default(""), not null
 #
 
 # Read about factories at https://github.com/thoughtbot/factory_girl
index 108bc30..5d4674e 100644 (file)
@@ -2,13 +2,14 @@
 #
 # Table name: namespaces
 #
-#  id         :integer          not null, primary key
-#  name       :string(255)      not null
-#  path       :string(255)      not null
-#  owner_id   :integer          not null
-#  created_at :datetime         not null
-#  updated_at :datetime         not null
-#  type       :string(255)
+#  id          :integer          not null, primary key
+#  name        :string(255)      not null
+#  path        :string(255)      not null
+#  owner_id    :integer          not null
+#  created_at  :datetime         not null
+#  updated_at  :datetime         not null
+#  type        :string(255)
+#  description :string(255)      default(""), not null
 #
 
 require 'spec_helper'
index 99d9f65..1bc794d 100644 (file)
@@ -9,11 +9,11 @@
 #  project_id   :integer
 #  created_at   :datetime         not null
 #  updated_at   :datetime         not null
-#  state        :string           default(FALSE), not null
 #  position     :integer          default(0)
 #  branch_name  :string(255)
 #  description  :text
 #  milestone_id :integer
+#  state        :string(255)
 #
 
 require 'spec_helper'
index dbae019..c64c053 100644 (file)
@@ -9,14 +9,13 @@
 #  author_id     :integer
 #  assignee_id   :integer
 #  title         :string(255)
-#  closed        :boolean          default(FALSE), not null
 #  created_at    :datetime         not null
 #  updated_at    :datetime         not null
 #  st_commits    :text(2147483647)
 #  st_diffs      :text(2147483647)
-#  merged        :boolean          default(FALSE), not null
-#  merge_status  :integer          default(1), not null
 #  milestone_id  :integer
+#  state         :string(255)
+#  merge_status  :string(255)
 #
 
 require 'spec_helper'
index b473f84..f74fea0 100644 (file)
@@ -7,9 +7,9 @@
 #  project_id  :integer          not null
 #  description :text
 #  due_date    :date
-#  state       :string           default(FALSE), not null
 #  created_at  :datetime         not null
 #  updated_at  :datetime         not null
+#  state       :string(255)
 #
 
 require 'spec_helper'
index d0de4a7..412e42a 100644 (file)
@@ -2,13 +2,14 @@
 #
 # Table name: namespaces
 #
-#  id         :integer          not null, primary key
-#  name       :string(255)      not null
-#  path       :string(255)      not null
-#  owner_id   :integer          not null
-#  created_at :datetime         not null
-#  updated_at :datetime         not null
-#  type       :string(255)
+#  id          :integer          not null, primary key
+#  name        :string(255)      not null
+#  path        :string(255)      not null
+#  owner_id    :integer          not null
+#  created_at  :datetime         not null
+#  updated_at  :datetime         not null
+#  type        :string(255)
+#  description :string(255)      default(""), not null
 #
 
 require 'spec_helper'
index 545908b..9423c7d 100644 (file)
@@ -16,6 +16,8 @@
 #  wiki_enabled           :boolean          default(TRUE), not null
 #  namespace_id           :integer
 #  public                 :boolean          default(FALSE), not null
+#  issues_tracker         :string(255)      default("gitlab"), not null
+#  issues_tracker_id      :string(255)
 #
 
 require 'spec_helper'
index cb39b6f..7d061bf 100644 (file)
 #  linkedin               :string(255)      default(""), not null
 #  twitter                :string(255)      default(""), not null
 #  authentication_token   :string(255)
-#  dark_scheme            :boolean          default(FALSE), not null
 #  theme_id               :integer          default(1), not null
 #  bio                    :string(255)
-#  state                  :string(255)      default(FALSE), not null
 #  failed_attempts        :integer          default(0)
 #  locked_at              :datetime
 #  extern_uid             :string(255)
@@ -33,6 +31,8 @@
 #  username               :string(255)
 #  can_create_group       :boolean          default(TRUE), not null
 #  can_create_team        :boolean          default(TRUE), not null
+#  state                  :string(255)
+#  color_scheme_id        :integer          default(1), not null
 #
 
 require 'spec_helper'
index 76d47f4..6cc2003 100644 (file)
@@ -2,12 +2,13 @@
 #
 # Table name: user_teams
 #
-#  id         :integer          not null, primary key
-#  name       :string(255)
-#  path       :string(255)
-#  owner_id   :integer
-#  created_at :datetime         not null
-#  updated_at :datetime         not null
+#  id          :integer          not null, primary key
+#  name        :string(255)
+#  path        :string(255)
+#  owner_id    :integer
+#  created_at  :datetime         not null
+#  updated_at  :datetime         not null
+#  description :string(255)      default(""), not null
 #
 
 require 'spec_helper'