added resources and rake db:migrate