This MySQL table is generated by ActiveRecord.
+--------------------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+-------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| RecordType | tinyint(4) | YES | | NULL | |
| Location | varchar(8) | YES | | NULL | |
Please explain to me what is meant by tinyint(4) in the second column. According to MySQL documentation the size of tinyint is one bytes. But does this mean it takes actually 4 bytes to store this data. The code for generating the second column is like this.
t.column :RecordType, :integer, :limit => 1