Browse Source

rubocop

pull/726/head
Ted 3 years ago
parent
commit
d077c12d5c
  1. 2
      db/migrate/20220707125124_add_foreign_key_to_user_organisation.rb
  2. 3
      db/migrate/20220707133909_add_foreign_key_to_logs_organisation.rb

2
db/migrate/20220707125124_add_foreign_key_to_user_organisation.rb

@ -1,7 +1,5 @@
class AddForeignKeyToUserOrganisation < ActiveRecord::Migration[7.0] class AddForeignKeyToUserOrganisation < ActiveRecord::Migration[7.0]
def change def change
add_reference :organisations, :users, foreign_key: true, on_delete: :cascade add_reference :organisations, :users, foreign_key: true, on_delete: :cascade
end end
end end

3
db/migrate/20220707133909_add_foreign_key_to_logs_organisation.rb

@ -1,6 +1,5 @@
class AddForeignKeyToLogsOrganisation < ActiveRecord::Migration[7.0] class AddForeignKeyToLogsOrganisation < ActiveRecord::Migration[7.0]
def change def change
add_reference :organisations, :case_logs, foreign_key: true, on_delete: :cascade add_reference :organisations, :case_logs, foreign_key: true, on_delete: :cascade
end end
end end

Loading…
Cancel
Save