OSDN Git Service

Reannotated
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sat, 24 Nov 2012 20:16:51 +0000 (22:16 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sat, 24 Nov 2012 20:16:51 +0000 (22:16 +0200)
app/models/group.rb
app/models/namespace.rb
app/models/project.rb
app/models/user.rb
spec/models/group_spec.rb
spec/models/namespace_spec.rb
spec/models/project_spec.rb
spec/models/user_spec.rb
spec/support/namespaces_stub.rb

index ab7b1b8..66267c5 100644 (file)
@@ -1,13 +1,14 @@
 # == Schema Information
 #
-# Table name: groups
+# Table name: namespaces
 #
 #  id         :integer          not null, primary key
 #  name       :string(255)      not null
-#  code       :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)
 #
 
 class Group < Namespace
index 72ba106..742c5cd 100644 (file)
@@ -1,3 +1,16 @@
+# == Schema Information
+#
+# 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)
+#
+
 class Namespace < ActiveRecord::Base
   attr_accessible :name, :path
 
index 956ab2a..4125456 100644 (file)
@@ -9,14 +9,13 @@
 #  created_at             :datetime         not null
 #  updated_at             :datetime         not null
 #  private_flag           :boolean          default(TRUE), not null
-#  code                   :string(255)
 #  owner_id               :integer
 #  default_branch         :string(255)
 #  issues_enabled         :boolean          default(TRUE), not null
 #  wall_enabled           :boolean          default(TRUE), not null
 #  merge_requests_enabled :boolean          default(TRUE), not null
 #  wiki_enabled           :boolean          default(TRUE), not null
-#  group_id               :integer
+#  namespace_id           :integer
 #
 
 require "grit"
index 20a5c47..bd7f50e 100644 (file)
@@ -30,6 +30,7 @@
 #  locked_at              :datetime
 #  extern_uid             :string(255)
 #  provider               :string(255)
+#  username               :string(255)
 #
 
 class User < ActiveRecord::Base
index 3a748b8..8058324 100644 (file)
@@ -1,13 +1,14 @@
 # == Schema Information
 #
-# Table name: groups
+# Table name: namespaces
 #
 #  id         :integer          not null, primary key
 #  name       :string(255)      not null
-#  code       :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)
 #
 
 require 'spec_helper'
index f481363..c2509d2 100644 (file)
@@ -1,3 +1,16 @@
+# == Schema Information
+#
+# 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)
+#
+
 require 'spec_helper'
 
 describe Namespace do
index 74c0aed..4fb5f50 100644 (file)
@@ -9,14 +9,13 @@
 #  created_at             :datetime         not null
 #  updated_at             :datetime         not null
 #  private_flag           :boolean          default(TRUE), not null
-#  code                   :string(255)
 #  owner_id               :integer
 #  default_branch         :string(255)
 #  issues_enabled         :boolean          default(TRUE), not null
 #  wall_enabled           :boolean          default(TRUE), not null
 #  merge_requests_enabled :boolean          default(TRUE), not null
 #  wiki_enabled           :boolean          default(TRUE), not null
-#  group_id               :integer
+#  namespace_id           :integer
 #
 
 require 'spec_helper'
index 3a87499..13fa4d1 100644 (file)
@@ -30,6 +30,7 @@
 #  locked_at              :datetime
 #  extern_uid             :string(255)
 #  provider               :string(255)
+#  username               :string(255)
 #
 
 require 'spec_helper'
index 35754f5..9cf9946 100644 (file)
@@ -5,6 +5,10 @@ class Namespace
   def ensure_dir_exist
     true
   end
+
+  def move_dir
+    true
+  end
 end
 
 class Gitlab::ProjectMover