Forum: Ruby on Rails create_table and char columns

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Brad T. (Guest)
on 2006-04-12 16:14
When I use create_table to make a table :string always makes a varchar
column. How can I make it so that :string will make a char column?

create_table(:accounts, :options => 'ENGINE=MyISAM DEFAULT') do |table|
  # This creates a varchar column, I would like a char column.
  table.column :username, :string
This topic is locked and can not be replied to.