Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Famisick member migration
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
You can’t perform that action at this time.