Added status default 0

This commit is contained in:
2024-07-28 19:13:56 +02:00
parent 7403c09a8f
commit 5c495f332e
2 changed files with 2 additions and 2 deletions

View File

@@ -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

2
db/schema.rb generated
View File

@@ -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