📅  最后修改于: 2022-03-11 15:04:46.950000             🧑  作者: Mango
class AddSubjectsToBook < ActiveRecord::Migration
def change
add_column :books, :subjects, :text, array:true, default: []
end
end