How do I create string columns on the migration file?


#1

I simply can not figure out how to create string columns on the migration file. Could you help me how to do it please?


#2

class CreateTags < ActiveRecord::Migration
def change
create_table :tags do |t|
t.string :title
t.string :image
t.timestamps
end
end
end