Making a set column type with create_table

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 :slight_smile:

Thanks,
Brad

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs