{"action":"closed","issue":{"url":"https://api.github.com/repos/payolapayments/payola/issues/311","repository_url":"https://api.github.com/repos/payolapayments/payola","labels_url":"https://api.github.com/repos/payolapayments/payola/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/payolapayments/payola/issues/311/comments","events_url":"https://api.github.com/repos/payolapayments/payola/issues/311/events","html_url":"https://github.com/payolapayments/payola/issues/311","id":238718507,"node_id":"MDU6SXNzdWUyMzg3MTg1MDc=","number":311,"title":"Appending migrations to migration path(s) does not work in Rails 5.1","user":{"login":"jayroh","id":28194,"node_id":"MDQ6VXNlcjI4MTk0","avatar_url":"https://avatars1.githubusercontent.com/u/28194?v=4","gravatar_id":"","url":"https://api.github.com/users/jayroh","html_url":"https://github.com/jayroh","followers_url":"https://api.github.com/users/jayroh/followers","following_url":"https://api.github.com/users/jayroh/following{/other_user}","gists_url":"https://api.github.com/users/jayroh/gists{/gist_id}","starred_url":"https://api.github.com/users/jayroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayroh/subscriptions","organizations_url":"https://api.github.com/users/jayroh/orgs","repos_url":"https://api.github.com/users/jayroh/repos","events_url":"https://api.github.com/users/jayroh/events{/privacy}","received_events_url":"https://api.github.com/users/jayroh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-27T02:11:09Z","updated_at":"2018-10-16T00:57:41Z","closed_at":"2018-10-16T00:57:41Z","author_association":"NONE","body":"What I just ran into:\r\n\r\n1. Upgraded app to rails 5.1\r\n2. ran `rake db:drop db:create db:migrate db:test:prepare`\r\n3. ran `rake spec`\r\n\r\nResult:\r\n\r\nPayola tables were not created.\r\n\r\nFix:\r\n\r\n```ruby\r\ninitializer :append_migrations do |app|\r\n  unless app.root.to_s.match root.to_s\r\n    config.paths[\"db/migrate\"].expanded.each do |expanded_path|\r\n      app.config.paths[\"db/migrate\"] << expanded_path\r\n\r\n      # ADD THE FOLLOWING\r\n      ActiveRecord::Migrator.migrations_paths << expanded_path\r\n    end\r\n  end\r\nend\r\n```\r\n\r\nAfter changing that locally, everything looks to be back in working shape"}}
{"actor":{"display_login":"peterkeen"}}