Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
whaleback
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
whaleback
Commits
b7c1b68b
Commit
b7c1b68b
authored
Jul 16, 2018
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Media::Attachment
parent
33f8a2a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
attachment.rb
lib/whaleback/media/attachment.rb
+26
-0
No files found.
lib/whaleback/media/attachment.rb
0 → 100644
View file @
b7c1b68b
# == Schema Information
#
# Table name: media_attachments
#
# id :integer not null, primary key
# column_name :string(255)
# attached_type :string(255)
# attached_id :integer
# obj_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_media_attachments_on_attached_type_and_attached_id (attached_type,attached_id)
# index_media_attachments_on_obj_id (obj_id)
#
module
Whaleback
module
Media
class
Attachment
<
ApplicationRecord
belongs_to
:attached
,
polymorphic:
true
belongs_to
:obj
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment