use references instead of belongs_to

This commit is contained in:
Alexander Meindl
2017-08-05 09:57:21 +02:00
parent 3687fbbe90
commit 763cf347f6

View File

@@ -3,7 +3,7 @@
class CreateMessengerSettings < ActiveRecord::Migration
def change
create_table :messenger_settings do |t|
t.belongs_to :project, null: false, index: true
t.references :project, null: false, index: true
t.string :messenger_url
t.string :messenger_icon
t.string :messenger_channel