Alireza Bashiri, thanks for commenting! According to the documentation, you actually can, specifically for Single Table Inheritance.
Active Record allows inheritance by storing the name of the class in a column that by default is named “type” (can be changed by overwriting
Base.inheritance_column
)