t.string :type, nil: false

For single-table inheritance here.