{"action":"opened","issue":{"url":"https://api.github.com/repos/swanandp/acts_as_list/issues/209","repository_url":"https://api.github.com/repos/swanandp/acts_as_list","labels_url":"https://api.github.com/repos/swanandp/acts_as_list/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/swanandp/acts_as_list/issues/209/comments","events_url":"https://api.github.com/repos/swanandp/acts_as_list/issues/209/events","html_url":"https://github.com/swanandp/acts_as_list/issues/209","id":161418634,"number":209,"title":"Adding to existing model with data and methods don't work","user":{"login":"tinderfields","id":305689,"avatar_url":"https://avatars.githubusercontent.com/u/305689?v=3","gravatar_id":"","url":"https://api.github.com/users/tinderfields","html_url":"https://github.com/tinderfields","followers_url":"https://api.github.com/users/tinderfields/followers","following_url":"https://api.github.com/users/tinderfields/following{/other_user}","gists_url":"https://api.github.com/users/tinderfields/gists{/gist_id}","starred_url":"https://api.github.com/users/tinderfields/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinderfields/subscriptions","organizations_url":"https://api.github.com/users/tinderfields/orgs","repos_url":"https://api.github.com/users/tinderfields/repos","events_url":"https://api.github.com/users/tinderfields/events{/privacy}","received_events_url":"https://api.github.com/users/tinderfields/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-21T12:02:45Z","updated_at":"2016-06-21T12:02:45Z","closed_at":null,"body":"When I add acts_as_list to a model retroactively the position is set to NULL and the move_higher and lower methods etc don't work. I have to add something like this to the migration.\r\n\r\n    TeamMember.reset_column_information\r\n    TeamMember.all.each_with_index do |tm, i|\r\n      tm.update_columns(position: i)\r\n    end\r\n\r\nIt would be good if there was something in the documentation to highlight this as I seem to have to figure it out every time I use acts_as_list"}}
{"actor":{"display_login":"tinderfields"}}