You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
451 B
13 lines
451 B
2 years ago
|
class AddSalesLog < ActiveRecord::Migration[7.0]
|
||
|
def change
|
||
|
create_table :sales_logs do |t|
|
||
|
t.integer :status, default: 0
|
||
|
t.datetime :saledate
|
||
|
t.timestamps
|
||
|
t.references :owning_organisation, class_name: "Organisation", foreign_key: { to_table: :organisations, on_delete: :cascade }
|
||
|
t.references :managing_organisation, class_name: "Organisation"
|
||
|
t.references :created_by, class_name: "User"
|
||
|
end
|
||
|
end
|
||
|
end
|