diff --git a/app/models/group.rb b/app/models/group.rb index ab7b1b8983fbb68868da371ea824d2381dcad33d..66267c569575a6ff0e5d43699fed892acf02a215 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 72ba106c7edeebe0e776dd559968a8a3e94091f3..742c5cda2332ccdc0700be3d2e242389eaaebbeb 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 956ab2aa1c888eb7a256cf532fb3d4d7936c4c75..4125456ded12ede06523584c9bc986e49e4c1ec3 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 20a5c4792cfb43962ac89718f1903a641ec6de45..bd7f50e2b2c490dcf502add3c092e1350af3c340 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 3a748b88d1899a1e1b89c05c93d56a10a1ba23e1..80583243a2fd17c5d72899f91739b4db17a2b545 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 f481363f90daf134591c1cd6ca57cd6db943b5e6..c2509d21f3fa0e87ce0d7195b9a138d69620aa15 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 74c0aed66348ea667ca61a89d5abb2a0f8a321da..4fb5f50c98a73cac59650ebb465771a9d89945ab 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 3a87499ba22d96495dc4faff73141e6b682e64ae..13fa4d1333d9e7dce1fc1949615f23c5d520455e 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 35754f56e83a28b486a855201262e732784cc51a..9cf994678508465d96eca045373049fa81fd7730 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