diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-31 09:11:35 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-31 09:11:35 +0200 |
commit | 193a5624b2daf4d638c382b88001d06535f57f2d (patch) | |
tree | 299193dfe694c776a1fc98c59f0c38565ab7a488 /db | |
parent | 563c55eb7e4db988048bd1b2675ee73e0e601402 (diff) | |
download | gitlab-ce-193a5624b2daf4d638c382b88001d06535f57f2d.tar.gz |
add path and path_with_namespace to api project entity
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130131070232_remove_private_flag_from_project.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/db/migrate/20130131070232_remove_private_flag_from_project.rb b/db/migrate/20130131070232_remove_private_flag_from_project.rb new file mode 100644 index 00000000000..5754db11558 --- /dev/null +++ b/db/migrate/20130131070232_remove_private_flag_from_project.rb @@ -0,0 +1,9 @@ +class RemovePrivateFlagFromProject < ActiveRecord::Migration + def up + remove_column :projects, :private_flag + end + + def down + add_column :projects, :private_flag, :boolean, default: true, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 144f4a57036..0f07d2bc8c5 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 => 20130125090214) do +ActiveRecord::Schema.define(:version => 20130131070232) do create_table "events", :force => true do |t| t.string "target_type" @@ -147,7 +147,6 @@ ActiveRecord::Schema.define(:version => 20130125090214) do t.text "description" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false - t.boolean "private_flag", :default => true, :null => false t.integer "creator_id" t.string "default_branch" t.boolean "issues_enabled", :default => true, :null => false |