Set ticket_levels.deleted default to false
This commit is contained in:
		
							parent
							
								
									8c9477dab9
								
							
						
					
					
						commit
						4466df6b0d
					
				
					 2 changed files with 13 additions and 2 deletions
				
			
		|  | @ -0,0 +1,10 @@ | ||||||
|  | # frozen_string_literal: true | ||||||
|  | 
 | ||||||
|  | # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later | ||||||
|  | # Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE | ||||||
|  | class SetTicketLevelDeletedToDefaultFalse < ActiveRecord::Migration[6.1] | ||||||
|  |   def change | ||||||
|  |     change_column_default :ticket_levels, :deleted, from: nil, to: false | ||||||
|  |     change_column_null :ticket_levels, :deleted, false | ||||||
|  |   end | ||||||
|  | end | ||||||
|  | @ -2208,7 +2208,7 @@ CREATE TABLE public.ticket_levels ( | ||||||
|     description text, |     description text, | ||||||
|     created_at timestamp without time zone NOT NULL, |     created_at timestamp without time zone NOT NULL, | ||||||
|     updated_at timestamp without time zone NOT NULL, |     updated_at timestamp without time zone NOT NULL, | ||||||
|     deleted boolean, |     deleted boolean DEFAULT false NOT NULL, | ||||||
|     "limit" integer, |     "limit" integer, | ||||||
|     event_discount_id integer, |     event_discount_id integer, | ||||||
|     admin_only boolean, |     admin_only boolean, | ||||||
|  | @ -4155,6 +4155,7 @@ INSERT INTO "schema_migrations" (version) VALUES | ||||||
| ('20200901214156'), | ('20200901214156'), | ||||||
| ('20210105192021'), | ('20210105192021'), | ||||||
| ('20210105192022'), | ('20210105192022'), | ||||||
| ('20210107210143'); | ('20210107210143'), | ||||||
|  | ('20210111220133'); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Eric Schultz
						Eric Schultz