Reannotated

This commit is contained in:
Dmitriy Zaporozhets 2012-11-24 22:16:51 +02:00
parent 3f1d6d6ab3
commit 65c470e843
9 changed files with 40 additions and 8 deletions

View 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

View 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

View 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"

View file

@ -30,6 +30,7 @@
# locked_at :datetime
# extern_uid :string(255)
# provider :string(255)
# username :string(255)
#
class User < ActiveRecord::Base

View 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'

View 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

View 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'

View file

@ -30,6 +30,7 @@
# locked_at :datetime
# extern_uid :string(255)
# provider :string(255)
# username :string(255)
#
require 'spec_helper'

View file

@ -5,6 +5,10 @@ class Namespace
def ensure_dir_exist
true
end
def move_dir
true
end
end
class Gitlab::ProjectMover