Rubocop rules
This commit is contained in:
5
db/migrate/20250217185300_add_index_to_customers.rb
Normal file
5
db/migrate/20250217185300_add_index_to_customers.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddIndexToCustomers < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
add_index :customers, [:name, :company_id], unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user