{"action":"opened","issue":{"url":"https://api.github.com/repos/modernistik/parse-stack/issues/9","repository_url":"https://api.github.com/repos/modernistik/parse-stack","labels_url":"https://api.github.com/repos/modernistik/parse-stack/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/modernistik/parse-stack/issues/9/comments","events_url":"https://api.github.com/repos/modernistik/parse-stack/issues/9/events","html_url":"https://github.com/modernistik/parse-stack/issues/9","id":172631338,"number":9,"title":" rake parse:upgrade                        # Run auto_upgrade on all of your Parse models","user":{"login":"rmros","id":5250967,"avatar_url":"https://avatars.githubusercontent.com/u/5250967?v=3","gravatar_id":"","url":"https://api.github.com/users/rmros","html_url":"https://github.com/rmros","followers_url":"https://api.github.com/users/rmros/followers","following_url":"https://api.github.com/users/rmros/following{/other_user}","gists_url":"https://api.github.com/users/rmros/gists{/gist_id}","starred_url":"https://api.github.com/users/rmros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmros/subscriptions","organizations_url":"https://api.github.com/users/rmros/orgs","repos_url":"https://api.github.com/users/rmros/repos","events_url":"https://api.github.com/users/rmros/events{/privacy}","received_events_url":"https://api.github.com/users/rmros/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-23T07:36:44Z","updated_at":"2016-08-23T07:36:44Z","closed_at":null,"body":"i cant understand --> **rake parse:upgrade**\r\nfor example : \r\nsuppose we have a Song class and inherited Parse::Object\r\n```\r\nclass Song <  Parse::Object\r\n  property :name\r\n  property :play, :integer\r\n  property :audio_file, :file\r\n  property :tags, :array\r\n  property :released, :date\r\n  belongs_to :artist\r\n  # `like` is a Parse Relation to User class\r\n  has_many :likes, as: :user, through: :relation\r\nend \r\n```\r\nand then we operate to make tables\r\n`Song.auto_upgrade!`\r\n\r\n\r\nand we had some records in that : \r\n\r\n```\r\nartist = Artist.first(:name.like => /Sinatra/, :genres.in => ['swing'])\r\nsong = Song.new name: \"Fly Me to the Moon\"\r\nsong.artist = artist\r\nsong.audio_file = Parse::File.create(\"http://path_to.mp3\")\r\nsong.likes.add Parse::User.first(username: \"persaud\")\r\nsong.save\r\n```\r\n\r\n **so what will do  rake parse:upgrade  ?√**"}}
{"actor":{"display_login":"rmros"}}