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:
@@ -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
|
||||
Reference in New Issue
Block a user