File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
lib/ruby_lsp/ruby_lsp_rails Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ def generate_column_content(name)
62
62
schema_file = model [ :schema_file ]
63
63
64
64
@response_builder . push (
65
- "[Schema](#{ URI ::Generic . from_path ( path : schema_file ) } )" ,
66
- category : :links ,
65
+ "[Schema](#{ URI ::Generic . from_path ( path : schema_file ) } )\n " ,
66
+ category : :documentation ,
67
67
) if schema_file
68
68
69
69
@response_builder . push (
Original file line number Diff line number Diff line change @@ -35,9 +35,10 @@ class User < ApplicationRecord
35
35
```
36
36
37
37
**Definitions**: [fake.rb](file:///fake.rb#L1,1-2,4)
38
- [Schema](#{ URI ::Generic . from_path ( path : dummy_root + "/db/schema.rb" ) } )
39
38
40
39
40
+ [Schema](#{ URI ::Generic . from_path ( path : dummy_root + "/db/schema.rb" ) } )
41
+
41
42
**id**: integer (PK)
42
43
43
44
**first_name**: string
@@ -83,9 +84,10 @@ class User < ApplicationRecord
83
84
```
84
85
85
86
**Definitions**: [fake.rb](file:///fake.rb#L2,3-3,6)
86
- [Schema](#{ URI ::Generic . from_path ( path : dummy_root + "/db/schema.rb" ) } )
87
87
88
88
89
+ [Schema](#{ URI ::Generic . from_path ( path : dummy_root + "/db/schema.rb" ) } )
90
+
89
91
**id**: integer (PK)
90
92
91
93
**first_name**: string
@@ -128,9 +130,10 @@ class CompositePrimaryKey < ApplicationRecord
128
130
```
129
131
130
132
**Definitions**: [fake.rb](file:///fake.rb#L1,1-2,4)
131
- [Schema](#{ URI ::Generic . from_path ( path : dummy_root + "/db/schema.rb" ) } )
132
133
133
134
135
+ [Schema](#{ URI ::Generic . from_path ( path : dummy_root + "/db/schema.rb" ) } )
136
+
134
137
**order_id**: integer (PK)
135
138
136
139
**product_id**: integer (PK)
You can’t perform that action at this time.
0 commit comments