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