[openstreetmap-website] Changeset discussion feature (#772)

Tom Hughes notifications at github.com
Tue Jul 29 20:16:48 UTC 2014


> @@ -0,0 +1,11 @@
> +require 'migrate'
> +class AddJoinTableBetweenUsersAndChangesets < ActiveRecord::Migration
> +  def change
> +    create_table :changesets_subscribers, id: false do |t|
> +      t.column :subscriber_id, :bigint, null: false
> +      t.column :changeset_id, :bigint, null: false
> +    end

My logic was that when we fetch subscribers for a changeset we won't care about the order, but when we fetch changesets for a subscriber we might - if for example we provided a paged list of changesets you were subscribed to.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/772/files#r15549116
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140729/e3e0e60b/attachment.html>


More information about the rails-dev mailing list