This commit is contained in:
2026-01-18 17:32:41 +09:00
parent 16ecbd1fc9
commit 8d7e4e4fdd
6 changed files with 83 additions and 6 deletions
@@ -0,0 +1,6 @@
class AddUniqueIndexToUrlInPosts < ActiveRecord::Migration[7.1]
def change
change_column :posts, :url, :string, limit: 768
add_index :posts, :url, unique: true, name: 'index_posts_on_url'
end
end