nicolas-fricke / transfair

[DEPRECATED] Second, Rails-based approach to a web application for the Transfair-Project
https://www.transfair.co
3 stars 3 forks source link

Add gender to db #34

Closed briodf closed 12 years ago

briodf commented 12 years ago

Following what I saw in Markus' commit (Fourth one: https://github.com/nicolas-fricke/transfair/commit/0af47609f1b63e6fa83f6d8236bbf5512bc275f6) , could it be a way to add gender in the db (for my curiosity)? :

+class AddIsFemaleToServicePartner < ActiveRecord::Migration    
+  def change
+    add_column :service_partners, :is_female, :bool
+  end  
+end
markus-hinsche commented 12 years ago

yeah, thats how you could do it the filename is also important, it needs to have the right timestamp, so that the migrations have the right order

briodf commented 12 years ago

Okey, could you correct it? The gender is something I forgot in our database shema.