r7kamura / diary

r7kamura's daily working log.
https://r7kamura.github.io/diary/
MIT License
2 stars 0 forks source link

2022-06-17 #42

Open r7kamura opened 2 years ago

r7kamura commented 2 years ago

作業 with r7kamura #48 - YouTube

r7kamura commented 2 years ago

Googleドキュメントでたまにリスト記法が上手くMarkdownに変換されないことがある…… HTML to Markdown の変換のところで上手くいってないのかも。

r7kamura commented 2 years ago

最近の俗世:

r7kamura commented 2 years ago

つくった r7kamura/unhandled_exception_formatter: Custom RSpec formatter to output unhandled exception.

r7kamura commented 2 years ago

RailsアップグレードでこういうCopが欲しくなることが多いので、試しにつくってみている:

# Bad
class Article < ApplicationRecord
  validates :name, uniqueness: true
end

# Good
class Article < ApplicationRecord
  validates :name, uniqueness: { case_sensitive: true }
end

# Good
class Article < ApplicationRecord
  validates :name, uniqueness: { case_sensitive: false }
end