add migrations and active record