Rubocop rules
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class RemoveTitleAndDescriptionFromReservations < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
remove_column :reservations, :title, :string
|
||||
remove_column :reservations, :description, :text
|
||||
# remove_column :reservations, :title, :string
|
||||
# remove_column :reservations, :description, :text
|
||||
end
|
||||
end
|
||||
|
||||
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