diff options
Diffstat (limited to 'db/migrate/20181228175414_create_releases_link_table.rb')
-rw-r--r-- | db/migrate/20181228175414_create_releases_link_table.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/migrate/20181228175414_create_releases_link_table.rb b/db/migrate/20181228175414_create_releases_link_table.rb index bf1e50dd36e..a8eb9db8461 100644 --- a/db/migrate/20181228175414_create_releases_link_table.rb +++ b/db/migrate/20181228175414_create_releases_link_table.rb @@ -12,6 +12,7 @@ class CreateReleasesLinkTable < ActiveRecord::Migration[5.0] t.string :name, null: false t.timestamps_with_timezone null: false + t.index [:release_id, :url], unique: true t.index [:release_id, :name], unique: true end end |