open-nomad/ui/app/models/job-version.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
427 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Model from '@ember-data/model';
import { attr, belongsTo } from '@ember-data/model';
2017-09-19 14:47:10 +00:00
export default class JobVersion extends Model {
@belongsTo('job') job;
@attr('boolean') stable;
@attr('date') submitTime;
@attr('number') number;
@attr() diff;
revertTo() {
return this.store.adapterFor('job-version').revertTo(this);
}
}