{"action":"created","issue":{"url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/444","repository_url":"https://api.github.com/repos/RolifyCommunity/rolify","labels_url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/444/labels{/name}","comments_url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/444/comments","events_url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/444/events","html_url":"https://github.com/RolifyCommunity/rolify/issues/444","id":212450911,"node_id":"MDU6SXNzdWUyMTI0NTA5MTE=","number":444,"title":"Directly inheriting from ActiveRecord::Migration is not supported","user":{"login":"brandoncordell","id":179822,"node_id":"MDQ6VXNlcjE3OTgyMg==","avatar_url":"https://avatars3.githubusercontent.com/u/179822?v=4","gravatar_id":"","url":"https://api.github.com/users/brandoncordell","html_url":"https://github.com/brandoncordell","followers_url":"https://api.github.com/users/brandoncordell/followers","following_url":"https://api.github.com/users/brandoncordell/following{/other_user}","gists_url":"https://api.github.com/users/brandoncordell/gists{/gist_id}","starred_url":"https://api.github.com/users/brandoncordell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandoncordell/subscriptions","organizations_url":"https://api.github.com/users/brandoncordell/orgs","repos_url":"https://api.github.com/users/brandoncordell/repos","events_url":"https://api.github.com/users/brandoncordell/events{/privacy}","received_events_url":"https://api.github.com/users/brandoncordell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-03-07T14:38:03Z","updated_at":"2018-11-14T17:29:38Z","closed_at":null,"author_association":"NONE","body":"Rails: 5.1.0.beta1\r\nRuby: 2.4.0\r\nRolify: 5.1.0\r\n\r\nThis generated migration fails on this version of rails\r\n\r\n```\r\n  class RolifyCreateRoles < ActiveRecord::Migration\r\n    def change\r\n      ...\r\n    end\r\n  end\r\n```\r\n\r\n```\r\nStandardError: An error has occurred, this and all later migrations canceled:\r\n\r\nDirectly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:\r\n\r\n  class RolifyCreateRoles < ActiveRecord::Migration[4.2]\r\n/Users/brandoncordell/Code/dsk_group/db/migrate/20170307143104_rolify_create_roles.rb:1:in `<top (required)>'\r\n/Users/brandoncordell/Code/dsk_group/bin/rails:9:in `require'\r\n/Users/brandoncordell/Code/dsk_group/bin/rails:9:in `<top (required)>'\r\n/Users/brandoncordell/Code/dsk_group/bin/spring:15:in `<top (required)>'\r\nbin/rails:3:in `load'\r\nbin/rails:3:in `<main>'\r\nStandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:\r\n\r\n  class RolifyCreateRoles < ActiveRecord::Migration[4.2]\r\n/Users/brandoncordell/Code/dsk_group/db/migrate/20170307143104_rolify_create_roles.rb:1:in `<top (required)>'\r\n/Users/brandoncordell/Code/dsk_group/bin/rails:9:in `require'\r\n/Users/brandoncordell/Code/dsk_group/bin/rails:9:in `<top (required)>'\r\n/Users/brandoncordell/Code/dsk_group/bin/spring:15:in `<top (required)>'\r\nbin/rails:3:in `load'\r\nbin/rails:3:in `<main>'\r\nTasks: TOP => db:migrate\r\n(See full trace by running task with --trace)\r\n```\r\n\r\n**Solution:** I change `class RolifyCreateRoles < ActiveRecord::Migration` to `class RolifyCreateRoles < ActiveRecord::Migration[5.0]`"},"comment":{"url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/comments/438748061","html_url":"https://github.com/RolifyCommunity/rolify/issues/444#issuecomment-438748061","issue_url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/444","id":438748061,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODc0ODA2MQ==","user":{"login":"LeVanVuong93","id":44252200,"node_id":"MDQ6VXNlcjQ0MjUyMjAw","avatar_url":"https://avatars3.githubusercontent.com/u/44252200?v=4","gravatar_id":"","url":"https://api.github.com/users/LeVanVuong93","html_url":"https://github.com/LeVanVuong93","followers_url":"https://api.github.com/users/LeVanVuong93/followers","following_url":"https://api.github.com/users/LeVanVuong93/following{/other_user}","gists_url":"https://api.github.com/users/LeVanVuong93/gists{/gist_id}","starred_url":"https://api.github.com/users/LeVanVuong93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeVanVuong93/subscriptions","organizations_url":"https://api.github.com/users/LeVanVuong93/orgs","repos_url":"https://api.github.com/users/LeVanVuong93/repos","events_url":"https://api.github.com/users/LeVanVuong93/events{/privacy}","received_events_url":"https://api.github.com/users/LeVanVuong93/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T17:29:38Z","updated_at":"2018-11-14T17:29:38Z","author_association":"NONE","body":"Hi\r\nSolution is change class RolifyCreateRoles < ActiveRecord::Migration to class RolifyCreateRoles < ActiveRecord::Migration[5.0] ?\r\nCould you tell me how to change this ? :("}}
{"actor":{"display_login":"LeVanVuong93"}}