added model attr and migrated