db migration

This commit is contained in:
KaungKaung
2026-01-26 15:05:12 +06:30
parent e0ac034974
commit 754a76fd5d
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddDescriptionToProjects < ActiveRecord::Migration[8.1]
def change
add_column :projects, :description, :string
end
end

3
db/schema.rb generated
View File

@@ -10,9 +10,10 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 2026_01_26_072814) do
ActiveRecord::Schema[8.1].define(version: 2026_01_26_082816) do
create_table "projects", force: :cascade do |t|
t.datetime "created_at", null: false
t.string "description"
t.string "project_name"
t.datetime "updated_at", null: false
end