mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
9 lines
216 B
Ruby
9 lines
216 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Coupon's codes should validate uniqness in database
|
|
class AddUniqueIndexOnCouponCode < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_index :coupons, :code, unique: true
|
|
end
|
|
end
|