Forum: Ruby on Rails making a set column type with create_table

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Brad T. (Guest)
on 2006-04-04 16:24
    create_table(:username, :options => 'ENGINE=MyISAM DEFAULT
CHARSET=utf8') do |table|
      table.column :name, :string
      # THE LINE BELOW FAILS
      table.column :tag, :set
      ...
      ...
    end

Hello all,

I'd like to make a set column with the create_table method. I've googled
around some, but did not find an answer. Is this possible with
create_method? I am using mysql. I've never used set columns before. I
wanted to experiment with storing tags in the database and I thought
that the set type would be ideal... but I may be wrong on that :)

Thanks,
Brad
This topic is locked and can not be replied to.