Skip to content

Commit

Permalink
Updated DB schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeiP committed Feb 22, 2022
1 parent f395ee1 commit 33b3fe4
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
# This file is the source Rails uses to define your schema when running `rails
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to
# be faster and is potentially less error prone than running all of your
# migrations from scratch. Old migrations may fail to apply correctly if those
# migrations use external dependencies or application code.
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2020_08_20_000743) do
ActiveRecord::Schema.define(version: 2022_02_22_184000) do

create_table "attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.integer "todo_id"
Expand Down Expand Up @@ -88,6 +88,7 @@
t.string "locale"
t.integer "review_period", default: 14, null: false
t.string "theme"
t.string "permitted_senders"
t.string "sms_permitted_senders"
t.index ["user_id"], name: "index_preferences_on_user_id"
end
Expand All @@ -96,7 +97,7 @@
t.string "name", null: false
t.integer "position", default: 0
t.integer "user_id", default: 1
t.text "description", limit: 16777215
t.text "description", size: :medium
t.string "state", limit: 20, null: false
t.datetime "created_at"
t.datetime "updated_at"
Expand All @@ -115,7 +116,7 @@
t.integer "context_id", null: false
t.integer "project_id"
t.string "description", null: false
t.text "notes", limit: 16777215
t.text "notes", size: :medium
t.string "state", limit: 20, null: false
t.datetime "start_from"
t.string "ends_on"
Expand Down Expand Up @@ -169,7 +170,7 @@
t.integer "context_id", null: false
t.integer "project_id"
t.text "description", null: false
t.text "notes", limit: 16777215
t.text "notes", size: :medium
t.datetime "created_at"
t.datetime "due"
t.datetime "completed_at"
Expand All @@ -178,7 +179,7 @@
t.string "state", limit: 20, null: false
t.integer "recurring_todo_id"
t.datetime "updated_at"
t.text "rendered_notes", limit: 16777215
t.text "rendered_notes", size: :medium
t.index ["context_id"], name: "index_todos_on_context_id"
t.index ["project_id"], name: "index_todos_on_project_id"
t.index ["state"], name: "index_todos_on_state"
Expand Down

0 comments on commit 33b3fe4

Please sign in to comment.