db migration
This commit is contained in:
5
db/migrate/20260126082816_add_description_to_projects.rb
Normal file
5
db/migrate/20260126082816_add_description_to_projects.rb
Normal 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
3
db/schema.rb
generated
@@ -10,9 +10,10 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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|
|
create_table "projects", force: :cascade do |t|
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
|
t.string "description"
|
||||||
t.string "project_name"
|
t.string "project_name"
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user