Created
June 10, 2013 20:56
-
-
Save drewda/5752218 to your computer and use it in GitHub Desktop.
OSM groups: an initial draft of a 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
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