Skip to content

A platform for community discussion. Free, open, simple.

FIX: Rails has bugs when a `has_one` has no `id` column :(

Robin Ward58ec4d04c09d
diff --git a/db/migrate/20180323161659_add_id_to_shared_drafts.rb b/db/migrate/20180323161659_add_id_to_shared_drafts.rb
new file mode 100644
index 00000000000..33fd2b99bc9
--- /dev/null
+++ b/db/migrate/20180323161659_add_id_to_shared_drafts.rb
@@ -0,0 +1,5 @@
+class AddIdToSharedDrafts < ActiveRecord::Migration[5.1]
+ def change
+ add_column :shared_drafts, :id, :primary_key
+ end
+end