Slide 56
Slide 56 text
create_table :virtual_columns, force: true do |t|
t.string :name
t.virtual :upper_name, type: :string,
as: "UPPER(name)", stored: true
t.virtual :lower_name, type: :string,
as: "LOWER(name)", stored: false
t.virtual :octet_name, type: :integer,
as: "LENGTH(name)"
end