about summary refs log tree commit diff
path: root/app/models/preview_card.rb
diff options
context:
space:
mode:
authoryhirano <yhirano@me.com>2017-05-02 09:14:47 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-02 02:14:47 +0200
commit298796cc7b4fdc075be659fc6aea7ab2543a0f9d (patch)
treef70f563b70284f5458c1897bacd3d8d0371a14f2 /app/models/preview_card.rb
parenta4859446abea166ae55806169425646c1bd42f85 (diff)
annotate models (#2697)
* add annotate to Gemfile

* rails g annotate:install

* configure annotate_models

* add schema info to models

* fix rubocop to add frozen_string_literal
Diffstat (limited to 'app/models/preview_card.rb')
-rw-r--r--app/models/preview_card.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/models/preview_card.rb b/app/models/preview_card.rb
index 238588157..a57f1252c 100644
--- a/app/models/preview_card.rb
+++ b/app/models/preview_card.rb
@@ -1,4 +1,28 @@
 # frozen_string_literal: true
+# == Schema Information
+#
+# Table name: preview_cards
+#
+#  id                 :integer          not null, primary key
+#  status_id          :integer
+#  url                :string           default(""), not null
+#  title              :string
+#  description        :string
+#  image_file_name    :string
+#  image_content_type :string
+#  image_file_size    :integer
+#  image_updated_at   :datetime
+#  created_at         :datetime         not null
+#  updated_at         :datetime         not null
+#  type               :integer          default("link"), not null
+#  html               :text             default(""), not null
+#  author_name        :string           default(""), not null
+#  author_url         :string           default(""), not null
+#  provider_name      :string           default(""), not null
+#  provider_url       :string           default(""), not null
+#  width              :integer          default(0), not null
+#  height             :integer          default(0), not null
+#
 
 class PreviewCard < ApplicationRecord
   IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif'].freeze