<commit_before>class CreateStudySubjects < SharedMigration
	def self.up
		create_table :study_subjects do |t|
			t.references :subject_type
			t.references :vital_status
			t.references :hispanicity
			t.date :reference_date
			t.string :sex
			t.boolean :do_not_contact, :default => false, :null => false
			t.integer :abstracts_count, :default => 0
			t.integer :mother_yrs_educ
			t.integer :father_yrs_educ
			t.string  :birth_type
			t.integer :mother_hispanicity_id
			t.integer :father_hispanicity_id
			t.string  :birth_county<commit_msg>Set default vital_status_id to 1.[#161]<commit_after>class CreateStudySubjects < SharedMigration
	def self.up
		create_table :study_subjects do |t|
			t.references :subject_type

			# 1 = VitalStatus['living']
			t.integer :vital_status_id, :default => 1

			t.references :hispanicity
			t.date :reference_date
			t.string :sex
			t.boolean :do_not_contact, :default => false, :null => false
			t.integer :abstracts_count, :default => 0
			t.integer :mother_yrs_educ
			t.integer :father_yrs_educ
			t.string  :birth_type
			t.integer :mother_hispanicity_id
			t.integer :father_hispanicity_id
			t.string  :birth_county
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.00686106346483705, 'mean_word_length': 4.256756756756757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7481097', 'n_tokens_mistral': 485, 'n_tokens_neox': 406, 'n_words': 89}