[openstreetmap/openstreetmap-website] Microcosms microcosms (PR #3683)
Brian DeRocher
notifications at github.com
Wed Sep 21 02:53:59 UTC 2022
@openbrian commented on this pull request.
> +# latitude :float not null
+# longitude :float not null
+# min_lat :float not null
+# max_lat :float not null
+# min_lon :float not null
+# max_lon :float not null
+#
+# At this time a microcosm has one organizer. The first organizer is
+# the user that created the microcosm.
+
+class Microcosm < ApplicationRecord
+ extend FriendlyId
+ friendly_id :name, :use => :slugged
+ self.ignored_columns = ["key"]
+
+ belongs_to :organizer, :class_name => "User"
Sir gravitystorm, While I disagree in this case (microcosm.organizer tells me something and microcosm.user_id tells me nothing), it doesn't matter. It will be OBE (overcome by events, not order of the british empire) when membership arrives.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3683#discussion_r975987200
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3683/review/1114693565 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220920/87d1350b/attachment.htm>
More information about the rails-dev
mailing list