lib/base/collection.js
function(data, options) {
    var self = this

    if (Array.isArray(data)) {
      return this.chain()
        .add(data)
        .save()
    }
    return this.runScopes().then(function() {
      return self.new(data).save(options)
    })
  }
function(data, options) {
    var self = this

    if (Array.isArray(data)) {
      return this.chain()
        .add(data)
        .save()
    }
    return this.runScopes().then(function() {
      return self.new(data).save(options)
    })
  }
function ( data , options ) { var self = this if ( Array . isArray ( data ) ) { return this . chain ( ) . add ( data ) . save ( ) } return this . runScopes ( ) . then ( function ( ) { return self . new ( data ) . save ( options ) } ) }
Creates a new record and saves it
@class Model
@method create
@param {object} data - The data of the new record
Creates a new record and saves it