35
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Railsのカラムで使う文字列の使い分け

Posted at

Railsを始めてstringとtextの違いがわからなかったのでまとめます。

String (文字列が255字まで)

  • 名前
  • 住所
  • 電話番号
  • 会社名

Text (それ以上)

  • コンテンツ
  • コメント
  • 段落

参考記事

35
23
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
35
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?