Namespaces.owner_id can be null

This commit is contained in:
Dmitriy Zaporozhets 2013-09-26 14:48:58 +03:00
parent 3cb663f5c9
commit edd2143d35
2 changed files with 11 additions and 2 deletions

View File

@ -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

View File

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