|
2 | 2 | # of editing this file, please use the migrations feature of Active Record to |
3 | 3 | # incrementally modify your database, and then regenerate this schema definition. |
4 | 4 | # |
5 | | -# Note that this schema.rb definition is the authoritative source for your |
6 | | -# database schema. If you need to create the application database on another |
7 | | -# system, you should be using db:schema:load, not running all the migrations |
8 | | -# from scratch. The latter is a flawed and unsustainable approach (the more migrations |
9 | | -# you'll amass, the slower it'll run and the greater likelihood for issues). |
| 5 | +# This file is the source Rails uses to define your schema when running `rails |
| 6 | +# db:schema:load`. When creating a new database, `rails db:schema:load` tends to |
| 7 | +# be faster and is potentially less error prone than running all of your |
| 8 | +# migrations from scratch. Old migrations may fail to apply correctly if those |
| 9 | +# migrations use external dependencies or application code. |
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema.define(version: 2020_08_20_000743) do |
| 13 | +ActiveRecord::Schema.define(version: 2022_02_22_184000) do |
14 | 14 |
|
15 | 15 | create_table "attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| |
16 | 16 | t.integer "todo_id" |
|
96 | 96 | t.string "name", null: false |
97 | 97 | t.integer "position", default: 0 |
98 | 98 | t.integer "user_id", default: 1 |
99 | | - t.text "description", limit: 16777215 |
| 99 | + t.text "description", size: :medium |
100 | 100 | t.string "state", limit: 20, null: false |
101 | 101 | t.datetime "created_at" |
102 | 102 | t.datetime "updated_at" |
|
115 | 115 | t.integer "context_id", null: false |
116 | 116 | t.integer "project_id" |
117 | 117 | t.string "description", null: false |
118 | | - t.text "notes", limit: 16777215 |
| 118 | + t.text "notes", size: :medium |
119 | 119 | t.string "state", limit: 20, null: false |
120 | 120 | t.datetime "start_from" |
121 | 121 | t.string "ends_on" |
|
169 | 169 | t.integer "context_id", null: false |
170 | 170 | t.integer "project_id" |
171 | 171 | t.text "description", null: false |
172 | | - t.text "notes", limit: 16777215 |
| 172 | + t.text "notes", size: :medium |
173 | 173 | t.datetime "created_at" |
174 | 174 | t.datetime "due" |
175 | 175 | t.datetime "completed_at" |
|
178 | 178 | t.string "state", limit: 20, null: false |
179 | 179 | t.integer "recurring_todo_id" |
180 | 180 | t.datetime "updated_at" |
181 | | - t.text "rendered_notes", limit: 16777215 |
| 181 | + t.text "rendered_notes", size: :medium |
182 | 182 | t.index ["context_id"], name: "index_todos_on_context_id" |
183 | 183 | t.index ["project_id"], name: "index_todos_on_project_id" |
184 | 184 | t.index ["state"], name: "index_todos_on_state" |
|
0 commit comments