{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9374","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9374/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9374/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9374/events","html_url":"https://github.com/yiisoft/yii2/pull/9374","id":100184060,"number":9374,"title":"Prevent AR in migrations by default","user":{"login":"TriAnMan","id":2266882,"avatar_url":"https://avatars.githubusercontent.com/u/2266882?v=3","gravatar_id":"","url":"https://api.github.com/users/TriAnMan","html_url":"https://github.com/TriAnMan","followers_url":"https://api.github.com/users/TriAnMan/followers","following_url":"https://api.github.com/users/TriAnMan/following{/other_user}","gists_url":"https://api.github.com/users/TriAnMan/gists{/gist_id}","starred_url":"https://api.github.com/users/TriAnMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TriAnMan/subscriptions","organizations_url":"https://api.github.com/users/TriAnMan/orgs","repos_url":"https://api.github.com/users/TriAnMan/repos","events_url":"https://api.github.com/users/TriAnMan/events{/privacy}","received_events_url":"https://api.github.com/users/TriAnMan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-10T22:37:31Z","updated_at":"2015-08-11T18:31:38Z","closed_at":"2015-08-11T07:19:23Z","pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/9374","html_url":"https://github.com/yiisoft/yii2/pull/9374","diff_url":"https://github.com/yiisoft/yii2/pull/9374.diff","patch_url":"https://github.com/yiisoft/yii2/pull/9374.patch"},"body":"Prohibit usage of an ActiveRecord in migrations by default.\r\nAR in migrations leads in future to broken migrations, indulges a hard-to-predict behavior of a migration in case of `ActiveRecord::beforeSave()` events."},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/130005547","html_url":"https://github.com/yiisoft/yii2/pull/9374#issuecomment-130005547","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/9374","id":130005547,"user":{"login":"TriAnMan","id":2266882,"avatar_url":"https://avatars.githubusercontent.com/u/2266882?v=3","gravatar_id":"","url":"https://api.github.com/users/TriAnMan","html_url":"https://github.com/TriAnMan","followers_url":"https://api.github.com/users/TriAnMan/followers","following_url":"https://api.github.com/users/TriAnMan/following{/other_user}","gists_url":"https://api.github.com/users/TriAnMan/gists{/gist_id}","starred_url":"https://api.github.com/users/TriAnMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TriAnMan/subscriptions","organizations_url":"https://api.github.com/users/TriAnMan/orgs","repos_url":"https://api.github.com/users/TriAnMan/repos","events_url":"https://api.github.com/users/TriAnMan/events{/privacy}","received_events_url":"https://api.github.com/users/TriAnMan/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T18:31:38Z","updated_at":"2015-08-11T18:31:38Z","body":"@cebe @klimov-paul what do you think about less restrictive patch I've proposed:\r\n> We can do this patch less restrictive by setting `$prohibitActiveRecord = false` by default and providing a comprehensive documentation note about importance of changing it to `true` and set it to `true` in example apps configs."}}