Skip to content

Commit 4e387db

Browse files
authored
add lock_version to root models (#37)
1 parent 679ab8e commit 4e387db

5 files changed

+12
-0
lines changed

db/migrate/20240413100944_create_accountify_organisations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ def change
33
create_table :accountify_organisations do |t|
44
t.bigint :tenant_id, null: false
55

6+
t.integer :lock_version, default: 0, null: false
7+
68
t.text :name, null: false
79

810
t.datetime :deleted_at

db/migrate/20240527212747_create_accountify_contacts.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ def change
33
create_table :accountify_contacts do |t|
44
t.bigint :tenant_id, null: false, index: true
55

6+
t.integer :lock_version, default: 0, null: false
7+
68
t.references :organisation, null: false,
79
foreign_key: { to_table: :accountify_organisations }, index: true
810

db/migrate/20240529212144_create_accountify_invoices.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ def change
33
create_table :accountify_invoices do |t|
44
t.bigint :tenant_id, null: false, index: true
55

6+
t.integer :lock_version, default: 0, null: false
7+
68
t.references :organisation, null: false,
79
foreign_key: { to_table: :accountify_organisations }, index: true
810

db/migrate/20240706053510_create_accountify_invoice_status_summary.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ def change
33
create_table :accountify_invoice_status_summaries do |t|
44
t.bigint :tenant_id, null: false
55

6+
t.integer :lock_version, default: 0, null: false
7+
68
t.references :organisation, null: false,
79
foreign_key: { to_table: :accountify_organisations }, index: true
810

db/schema.rb

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)