feat: URL 正規化(#208) (#226)

#208

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: #226
This commit was merged in pull request #226.
This commit is contained in:
2026-01-20 12:39:33 +09:00
parent 16ecbd1fc9
commit 86209dcc84
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