|
1 |
| -# ## Schema Information |
2 |
| -# Schema version: 20131205021701 |
| 1 | +# == Schema Information |
3 | 2 | #
|
4 |
| -# Table name: `protips` |
| 3 | +# Table name: protips |
5 | 4 | #
|
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) |
7 | 21 | #
|
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 |
25 | 23 | #
|
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) |
32 | 26 | #
|
33 | 27 |
|
34 | 28 | require 'net_validators'
|
|
0 commit comments