diff --git a/db/migrate/20240728165519_create_todos.rb b/db/migrate/20240728165519_create_todos.rb index 9cbcd7c..1364062 100644 --- a/db/migrate/20240728165519_create_todos.rb +++ b/db/migrate/20240728165519_create_todos.rb @@ -2,7 +2,7 @@ class CreateTodos < ActiveRecord::Migration[7.1] def change create_table :todos do |t| t.string :title - t.integer :status + t.integer :status, default: 0 t.timestamps end diff --git a/db/schema.rb b/db/schema.rb index 4392f69..915bc61 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -13,7 +13,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_07_28_165519) do create_table "todos", force: :cascade do |t| t.string "title" - t.integer "status" + t.integer "status", default: 0 t.datetime "created_at", null: false t.datetime "updated_at", null: false end