Skip to content

Instantly share code, notes, and snippets.

@drewda
Created June 10, 2013 20:56
Show Gist options
  • Save drewda/5752218 to your computer and use it in GitHub Desktop.
Save drewda/5752218 to your computer and use it in GitHub Desktop.
OSM groups: an initial draft of a migration
create_table :groups do |t|
t.string :name
t.string :slug
t.text :description
t.decimal :nw_longitude
t.decimal :nw_latitude
t.decimal :se_longitude
t.decimal :se_latitude
t.integer :owner_user_id
t.timestamps
end
create_table :group_membership do |t|
t.integer :group_id
t.integer :user_id
t.timestamps
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment