Skip to content

Instantly share code, notes, and snippets.

@DrewWeth
Created June 15, 2014 09:07
Show Gist options
  • Save DrewWeth/ab0fd85b897cf2c60f96 to your computer and use it in GitHub Desktop.
Save DrewWeth/ab0fd85b897cf2c60f96 to your computer and use it in GitHub Desktop.
class CreateMembersInOrgs < ActiveRecord::Migration
def change
create_table :members_in_orgs do |t|
t.integer :mio_id
t.integer :member_id
t.integer :org_id
t.timestamps
end
end
end
class CreateOrgs < ActiveRecord::Migration
def change
create_table :orgs do |t|
t.integer :org_id
t.string :name
t.string :desc
t.integer :parent
t.date :est_date
t.timestamps
end
end
end
class CreateMembers < ActiveRecord::Migration
def change
create_table :members do |t|
t.integer :member_id
t.string :first_name
t.string :last_name
t.date :birthdate
t.string :email
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment