assemblymade/coderwall

View on GitHub
app/models/picture.rb

Summary

Maintainability
A
0 mins
Test Coverage
# == Schema Information
#
# Table name: pictures
#
#  id         :integer          not null, primary key
#  user_id    :integer
#  file       :string(255)
#  created_at :datetime
#  updated_at :datetime
#

class Picture < ActiveRecord::Base
  include Rails.application.routes.url_helpers
  mount_uploader :file, PictureUploader

  belongs_to :user
end