summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-26 14:48:58 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-26 14:48:58 +0300
commitedd2143d35d439e203d53b5e413f71e9f02db139 (patch)
tree1072178c072c4c8cab588ad67540d82896389044 /db
parent3cb663f5c9359d809ecc82cc29a62d7658a48fbe (diff)
downloadgitlab-ce-edd2143d35d439e203d53b5e413f71e9f02db139.tar.gz
Namespaces.owner_id can be null
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130926081215_change_owner_id_for_group.rb9
-rw-r--r--db/schema.rb4
2 files changed, 11 insertions, 2 deletions
diff --git a/db/migrate/20130926081215_change_owner_id_for_group.rb b/db/migrate/20130926081215_change_owner_id_for_group.rb
new file mode 100644
index 00000000000..8f1992c37ab
--- /dev/null
+++ b/db/migrate/20130926081215_change_owner_id_for_group.rb
@@ -0,0 +1,9 @@
+class ChangeOwnerIdForGroup < ActiveRecord::Migration
+ def up
+ change_column :namespaces, :owner_id, :integer, null: true
+ end
+
+ def down
+ change_column :namespaces, :owner_id, :integer, null: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index d5effe40ea1..713d9f733d6 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130909132950) do
+ActiveRecord::Schema.define(:version => 20130926081215) do
create_table "deploy_keys_projects", :force => true do |t|
t.integer "deploy_key_id", :null => false
@@ -129,7 +129,7 @@ ActiveRecord::Schema.define(:version => 20130909132950) do
create_table "namespaces", :force => true do |t|
t.string "name", :null => false
t.string "path", :null => false
- t.integer "owner_id", :null => false
+ t.integer "owner_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "type"