Rails Migration Difference between Text and String ? While working with Rails Migration Difference between Text and String is important to be known to every developer. Columns and their data types are finalized while deciding Table structure. This tutorial will help understand difference between String and Text column type and illustrate how to write Rails Migration implementing the same. You might want to read about database.yml files for specifying database configuration for Rails Application. 1. Concepts When String or Text data type is required? Whenever you require your column to store information which is lengthy in size (Many characters), you need to consider String or Text data type for the column. Both of them let you store Many(How Many - will see later) characters Difference between String and Text Considering MySQL database Feature String Text Length 1 to 255 ...
I love Ruby on rails.Ruby on Rails Coding is not my job its my passion ..
Comments
Post a Comment