📅  最后修改于: 2022-03-11 15:04:48.135000             🧑  作者: Mango
代码示例2
class CreateFoobars < ActiveRecord::Migration
def change
create_table :foobars do |t|
t.string :name, index: {unique: true}
end
end
end