Fix cascade symbol invalid

This commit is contained in:
Thor77 2018-11-13 20:16:52 +01:00
parent 20fafab009
commit 1d463b55c3
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class CreateSchema < ActiveRecord::Migration[5.2]
t.boolean :public, default: true
# relation to owner
t.belongs_to :user, index: true, null: false, foreign_key: { on_delete: cascade }
t.belongs_to :user, index: true, null: false, foreign_key: { on_delete: :cascade }
t.timestamps
end