diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-24 22:16:51 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-24 22:16:51 +0200 |
commit | 65c470e84396a9db4b697a45128ce8d28c612d7c (patch) | |
tree | 3637f47ee24f1945a1e70cd2fc13b9a1ca18a88b | |
parent | 3f1d6d6ab3a7e1b2bbbae7dcd17edc884f9fbf07 (diff) | |
download | gitlab-ce-65c470e84396a9db4b697a45128ce8d28c612d7c.tar.gz |
Reannotated
-rw-r--r-- | app/models/group.rb | 5 | ||||
-rw-r--r-- | app/models/namespace.rb | 13 | ||||
-rw-r--r-- | app/models/project.rb | 3 | ||||
-rw-r--r-- | app/models/user.rb | 1 | ||||
-rw-r--r-- | spec/models/group_spec.rb | 5 | ||||
-rw-r--r-- | spec/models/namespace_spec.rb | 13 | ||||
-rw-r--r-- | spec/models/project_spec.rb | 3 | ||||
-rw-r--r-- | spec/models/user_spec.rb | 1 | ||||
-rw-r--r-- | spec/support/namespaces_stub.rb | 4 |
9 files changed, 40 insertions, 8 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index ab7b1b8983f..66267c56957 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -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 diff --git a/app/models/namespace.rb b/app/models/namespace.rb index 72ba106c7ed..742c5cda233 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -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 diff --git a/app/models/project.rb b/app/models/project.rb index 956ab2aa1c8..4125456ded1 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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" diff --git a/app/models/user.rb b/app/models/user.rb index 20a5c4792cf..bd7f50e2b2c 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -30,6 +30,7 @@ # locked_at :datetime # extern_uid :string(255) # provider :string(255) +# username :string(255) # class User < ActiveRecord::Base diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index 3a748b88d18..80583243a2f 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -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' diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb index f481363f90d..c2509d21f3f 100644 --- a/spec/models/namespace_spec.rb +++ b/spec/models/namespace_spec.rb @@ -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 diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 74c0aed6634..4fb5f50c98a 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -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' diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 3a87499ba22..13fa4d1333d 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -30,6 +30,7 @@ # locked_at :datetime # extern_uid :string(255) # provider :string(255) +# username :string(255) # require 'spec_helper' diff --git a/spec/support/namespaces_stub.rb b/spec/support/namespaces_stub.rb index 35754f56e83..9cf99467850 100644 --- a/spec/support/namespaces_stub.rb +++ b/spec/support/namespaces_stub.rb @@ -5,6 +5,10 @@ class Namespace def ensure_dir_exist true end + + def move_dir + true + end end class Gitlab::ProjectMover |