Created
July 26, 2011 09:19
-
-
Save zxcvbnm4709/1106356 to your computer and use it in GitHub Desktop.
Famisick member migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreateMembers < ActiveRecord::Migration | |
def self.up | |
create_table :members do |t| | |
t.integer :family_id | |
t.string :name | |
t.integer :tree_position_id | |
t.string :gender | |
t.datetime :birthday | |
t.string :bloodtype | |
t.timestamps | |
end | |
add_index :members, :family_id | |
add_index :members, :birthday | |
end | |
def self.down | |
drop_table :members | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment