module.exports = bookshelf.Model.extend({
  tableName: 'media',

  post: function() {
    return this.belongsTo(Post);
  }

}, {

  create: function(opts) {
    return new Media({
      post_id: opts.postId,
      url: opts.url,
      type: opts.type
    }).save(null, _.pick(opts, 'transacting'));
  }

});

@@ -74,16 +74,17 @@
 function
+ 
 () %7B%0A   
@@ -111,17 +111,16 @@
 To(Post)
-;
 %0A  %7D%0A%0A%7D,
@@ -141,16 +141,17 @@
 function
+ 
 (opts) %7B
@@ -295,15 +295,14 @@
 g'))
-;
 %0A  %7D%0A%0A%7D)
 ;%0A
@@ -303,6 +303,5 @@
 %0A%0A%7D)
-;
 %0A

standardize formatting