Last active
August 29, 2015 14:13
-
-
Save poteto/ad9858dde1e5f962f7bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import DS from 'ember-data;' | |
export default DS.Model.extend({ | |
name: DS.attr('string'), | |
score: DS.attr('number'), | |
team: DS.belongsTo('team', { async: true }), | |
players: DS.hasMany('player', { async: true }) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment