I am using
ActiveModel::Model
ActiveModel::Attributes.
I noticed that the attributes method used in my form object (active model) does not allow :text
type. I was wondering how I can setup attributes to mimic the below sql table?
create_table "teachers", force: :cascade do |t|
t.string "name"
t.text "credentials", default: [], array: true
t.integer "age"
t.boolean "working", default: false
t.bigint "user_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["user_id"], name: "index_cpas_on_user_id"
end