Skip to content

Commit cc89ffb

Browse files
committed
Annotate protip model
1 parent 66b46f8 commit cc89ffb

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed

app/models/protip.rb

+21-27
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
1-
# ## Schema Information
2-
# Schema version: 20131205021701
1+
# == Schema Information
32
#
4-
# Table name: `protips`
3+
# Table name: protips
54
#
6-
# ### Columns
5+
# id :integer not null, primary key
6+
# public_id :string(255)
7+
# kind :string(255)
8+
# title :string(255)
9+
# body :text
10+
# user_id :integer
11+
# created_at :datetime
12+
# updated_at :datetime
13+
# score :float
14+
# created_by :string(255) default("self")
15+
# featured :boolean default(FALSE)
16+
# featured_at :datetime
17+
# upvotes_value_cache :integer default(75)
18+
# boost_factor :float default(1.0)
19+
# inappropriate :integer default(0)
20+
# likes_count :integer default(0)
721
#
8-
# Name | Type | Attributes
9-
# -------------------------- | ------------------ | ---------------------------
10-
# **`body`** | `text` |
11-
# **`boost_factor`** | `float` | `default(1.0)`
12-
# **`created_at`** | `datetime` |
13-
# **`created_by`** | `string(255)` | `default("self")`
14-
# **`featured`** | `boolean` | `default(FALSE)`
15-
# **`featured_at`** | `datetime` |
16-
# **`id`** | `integer` | `not null, primary key`
17-
# **`inappropriate`** | `integer` | `default(0)`
18-
# **`kind`** | `string(255)` |
19-
# **`public_id`** | `string(255)` |
20-
# **`score`** | `float` |
21-
# **`title`** | `string(255)` |
22-
# **`updated_at`** | `datetime` |
23-
# **`upvotes_value_cache`** | `integer` |
24-
# **`user_id`** | `integer` |
22+
# Indexes
2523
#
26-
# ### Indexes
27-
#
28-
# * `index_protips_on_public_id`:
29-
# * **`public_id`**
30-
# * `index_protips_on_user_id`:
31-
# * **`user_id`**
24+
# index_protips_on_public_id (public_id)
25+
# index_protips_on_user_id (user_id)
3226
#
3327

3428
require 'net_validators'

0 commit comments

Comments
 (0)