diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-02 19:00:00 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-02 19:00:00 +0200 |
commit | 00a1f5bc2cc2c98bda3818e770eaae95e664480a (patch) | |
tree | 957597fc0a568cbf92dd1d4377b771c39a671300 /db | |
parent | 91995909d9ef6fc5540c7577987ed2244ac7862a (diff) | |
download | gitlab-ce-00a1f5bc2cc2c98bda3818e770eaae95e664480a.tar.gz |
Project has now correct owner and creator. Increased test coverage
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130102143055_rename_owner_to_creator_for_project.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/db/migrate/20130102143055_rename_owner_to_creator_for_project.rb b/db/migrate/20130102143055_rename_owner_to_creator_for_project.rb new file mode 100644 index 00000000000..d0fca269871 --- /dev/null +++ b/db/migrate/20130102143055_rename_owner_to_creator_for_project.rb @@ -0,0 +1,5 @@ +class RenameOwnerToCreatorForProject < ActiveRecord::Migration + def change + rename_column :projects, :owner_id, :creator_id + end +end diff --git a/db/schema.rb b/db/schema.rb index 7de5593285a..b1cf0ccbdb2 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 => 20121219095402) do +ActiveRecord::Schema.define(:version => 20130102143055) do create_table "events", :force => true do |t| t.string "target_type" @@ -148,7 +148,7 @@ ActiveRecord::Schema.define(:version => 20121219095402) do t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.boolean "private_flag", :default => true, :null => false - t.integer "owner_id" + t.integer "creator_id" t.string "default_branch" t.boolean "issues_enabled", :default => true, :null => false t.boolean "wall_enabled", :default => true, :null => false @@ -157,8 +157,8 @@ ActiveRecord::Schema.define(:version => 20121219095402) do t.integer "namespace_id" end + add_index "projects", ["creator_id"], :name => "index_projects_on_owner_id" add_index "projects", ["namespace_id"], :name => "index_projects_on_namespace_id" - add_index "projects", ["owner_id"], :name => "index_projects_on_owner_id" create_table "protected_branches", :force => true do |t| t.integer "project_id", :null => false |