mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-26 20:08:51 +01:00
Merge pull request #2328 from whoisutsav/change_todos_description_to_text_field
Change "todos.description" from "string" to "text"
This commit is contained in:
commit
29eea7dd99
2 changed files with 14 additions and 2 deletions
12
db/migrate/20200109231555_change_todo_description.rb
Normal file
12
db/migrate/20200109231555_change_todo_description.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class ChangeTodoDescription < ActiveRecord::Migration[5.2]
|
||||
def up
|
||||
change_table :todos do |t|
|
||||
t.change :description, :text
|
||||
end
|
||||
end
|
||||
def down
|
||||
change_table :todos do |t|
|
||||
t.change :description, :string
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2019_06_18_202817) do
|
||||
ActiveRecord::Schema.define(version: 2020_01_09_231555) do
|
||||
|
||||
create_table "attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
||||
t.integer "todo_id"
|
||||
|
|
@ -166,7 +166,7 @@ ActiveRecord::Schema.define(version: 2019_06_18_202817) do
|
|||
create_table "todos", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
||||
t.integer "context_id", null: false
|
||||
t.integer "project_id"
|
||||
t.string "description", null: false
|
||||
t.text "description", null: false
|
||||
t.text "notes", limit: 16777215
|
||||
t.datetime "created_at"
|
||||
t.datetime "due"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue