summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <nick@super.gd>2020-10-26 00:40:36 -0700
committerNick Van Doorn <nick@super.gd>2020-10-26 00:40:36 -0700
commit30ecd131aedaac012f95a9ed2febed6a73abb337 (patch)
treed9b944199493bde79ffd52c568ffbce49695fe9a
parentbbfe70372e27fea204180375c7b44e60ef7e31a9 (diff)
Add completed at to tasks
-rw-r--r--db/migrate/20201026073940_add_completed_at_to_task.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20201026073940_add_completed_at_to_task.rb b/db/migrate/20201026073940_add_completed_at_to_task.rb
new file mode 100644
index 0000000..bd72cca
--- /dev/null
+++ b/db/migrate/20201026073940_add_completed_at_to_task.rb
@@ -0,0 +1,5 @@
+class AddCompletedAtToTask < ActiveRecord::Migration[6.0]
+ def change
+ add_column :tasks, :completed_at, :datetime
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 5a465a3..337b38d 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 2020_02_05_034009) do
+ActiveRecord::Schema.define(version: 2020_10_26_073940) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -27,6 +27,7 @@ ActiveRecord::Schema.define(version: 2020_02_05_034009) do
t.bigint "task_list_id", null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
+ t.datetime "completed_at"
t.index ["task_list_id"], name: "index_tasks_on_task_list_id"
end