Browse Source
			
			
			
			
				
		* failed rebase, copied onto new branch * lint * fix migration file and lint * fix migration - remove duplication * fix migration - remove duplicate foreign key * fix migration - remove duplication * lint * migration fix * fix migration and lint * keep foreign key for managing organisationspull/814/head
				 7 changed files with 54 additions and 8 deletions
			
			
		| @ -0,0 +1,6 @@ | |||||||
|  | class AddDeleteCascadeFromOrgsDown < ActiveRecord::Migration[7.0] | ||||||
|  |   def change | ||||||
|  |     remove_foreign_key :schemes, :organisations, column: "owning_organisation_id" | ||||||
|  |     add_foreign_key :schemes, :organisations, column: "owning_organisation_id", on_delete: :cascade | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -0,0 +1,6 @@ | |||||||
|  | class AddDeleteCaselogsUsers < ActiveRecord::Migration[7.0] | ||||||
|  |   def change | ||||||
|  |     add_foreign_key :case_logs, :organisations, column: "owning_organisation_id", on_delete: :cascade | ||||||
|  |     add_foreign_key :users, :organisations, on_delete: :cascade | ||||||
|  |   end | ||||||
|  | end | ||||||
					Loading…
					
					
				
		Reference in new issue