add attributes to projects
This commit is contained in:
8
db/migrate/20250721140802_add_columns_to_projects.rb
Normal file
8
db/migrate/20250721140802_add_columns_to_projects.rb
Normal 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
6
db/schema.rb
generated
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user