Skip to content

Commit

Permalink
Update migrator syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcsmith committed Jun 15, 2018
1 parent 70b93fb commit e9e340f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/migrations/20180115194734_create_taggings.cr
Expand Up @@ -5,8 +5,8 @@ class CreateTaggings::V20180115194734 < LuckyMigrator::Migration::V1
end

create :taggings do
belongs_to Tag, on_delete: :cascade
belongs_to Post, on_delete: :cascade
add_belongs_to tag : Tag, on_delete: :cascade
add_belongs_to post : Post, on_delete: :cascade
end
end

Expand Down

0 comments on commit e9e340f

Please sign in to comment.