add attributes to projects

This commit is contained in:
Stefan Tollkühn
2025-07-21 16:29:55 +02:00
parent c008e052b2
commit b17c455407
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
class AddColumnsToProjects < ActiveRecord::Migration[8.0]
def change
add_column :projects, :email, :string
add_column :projects, :short_name, :string
add_column :projects, :offer_date, :datetime
add_column :projects, :order_date, :datetime
end
end

6
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2025_07_17_162220) do
ActiveRecord::Schema[8.0].define(version: 2025_07_21_140802) do
create_table "clients", force: :cascade do |t|
t.string "company_name"
t.string "firstname"
@@ -29,6 +29,10 @@ ActiveRecord::Schema[8.0].define(version: 2025_07_17_162220) do
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "email"
t.string "short_name"
t.datetime "offer_date"
t.datetime "order_date"
end
create_table "subprojects", force: :cascade do |t|