Files
todoapp/db/migrate/20240728165519_create_todos.rb
2024-07-28 19:13:56 +02:00

11 lines
189 B
Ruby

class CreateTodos < ActiveRecord::Migration[7.1]
def change
create_table :todos do |t|
t.string :title
t.integer :status, default: 0
t.timestamps
end
end
end