Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tbuehlmann/7b6b85b9ebd9e8ad563b to your computer and use it in GitHub Desktop.
Save tbuehlmann/7b6b85b9ebd9e8ad563b to your computer and use it in GitHub Desktop.
class CreateGroupLocations < ActiveRecord::Migration
def change
create_table :group_locations do |t|
t.belongs_to :address, index: true, foreign_key: true
t.belongs_to :group, index: true, foreign_key: true
t.timestamps null: false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment