diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-20 11:59:59 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-20 12:39:27 -0200 |
commit | 3d52e139b13ad077286f2f9f46b7e98f43ad9564 (patch) | |
tree | 22c70561b0f64851d938e44661aafeed3a2c80b2 /db | |
parent | 408e010d65e7e2e2b64a694e12d44636d7d81dec (diff) | |
download | gitlab-ce-3d52e139b13ad077286f2f9f46b7e98f43ad9564.tar.gz |
Rename Tasks to Todos
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160220123949_rename_tasks_to_todos.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 16 |
2 files changed, 13 insertions, 8 deletions
diff --git a/db/migrate/20160220123949_rename_tasks_to_todos.rb b/db/migrate/20160220123949_rename_tasks_to_todos.rb new file mode 100644 index 00000000000..30c10d27146 --- /dev/null +++ b/db/migrate/20160220123949_rename_tasks_to_todos.rb @@ -0,0 +1,5 @@ +class RenameTasksToTodos < ActiveRecord::Migration + def change + rename_table :tasks, :todos + end +end diff --git a/db/schema.rb b/db/schema.rb index 2b726d17682..4708c29d9ae 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20160217174422) do +ActiveRecord::Schema.define(version: 20160220123949) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -824,7 +824,7 @@ ActiveRecord::Schema.define(version: 20160217174422) do add_index "tags", ["name"], name: "index_tags_on_name", unique: true, using: :btree - create_table "tasks", force: :cascade do |t| + create_table "todos", force: :cascade do |t| t.integer "user_id", null: false t.integer "project_id", null: false t.integer "target_id", null: false @@ -837,12 +837,12 @@ ActiveRecord::Schema.define(version: 20160217174422) do t.integer "note_id" end - add_index "tasks", ["author_id"], name: "index_tasks_on_author_id", using: :btree - add_index "tasks", ["note_id"], name: "index_tasks_on_note_id", using: :btree - add_index "tasks", ["project_id"], name: "index_tasks_on_project_id", using: :btree - add_index "tasks", ["state"], name: "index_tasks_on_state", using: :btree - add_index "tasks", ["target_type", "target_id"], name: "index_tasks_on_target_type_and_target_id", using: :btree - add_index "tasks", ["user_id"], name: "index_tasks_on_user_id", using: :btree + add_index "todos", ["author_id"], name: "index_todos_on_author_id", using: :btree + add_index "todos", ["note_id"], name: "index_todos_on_note_id", using: :btree + add_index "todos", ["project_id"], name: "index_todos_on_project_id", using: :btree + add_index "todos", ["state"], name: "index_todos_on_state", using: :btree + add_index "todos", ["target_type", "target_id"], name: "index_todos_on_target_type_and_target_id", using: :btree + add_index "todos", ["user_id"], name: "index_todos_on_user_id", using: :btree create_table "users", force: :cascade do |t| t.string "email", default: "", null: false |