mirror of
https://github.com/discourse/discourse.git
synced 2025-04-15 19:22:24 +08:00
FIX: Rails has bugs when a has_one
has no id
column :(
This commit is contained in:
parent
5f19ad9507
commit
58ec4d04c0
5
db/migrate/20180323161659_add_id_to_shared_drafts.rb
Normal file
5
db/migrate/20180323161659_add_id_to_shared_drafts.rb
Normal file
@ -0,0 +1,5 @@
|
||||
class AddIdToSharedDrafts < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_column :shared_drafts, :id, :primary_key
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user