adds migrations and write the actions instead the hard coded ones