Skip to content

Commit 85bc6ca

Browse files
authored
Merge pull request rails#46829 from p8/activerecord/fix-readme-formating
Fix Active Record README formatting [ci-skip]
2 parents 9f141a4 + 702421e commit 85bc6ca

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

activerecord/README.rdoc

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,22 @@ A short rundown of some of the major features:
1919

2020
* Automated mapping between classes and tables, attributes and columns.
2121

22-
class Product < ActiveRecord::Base
23-
end
24-
25-
{Learn more}[link:classes/ActiveRecord/Base.html]
22+
class Product < ActiveRecord::Base
23+
end
2624

27-
The Product class is automatically mapped to the table named "products",
28-
which might look like this:
25+
The Product class is automatically mapped to the table named "products",
26+
which might look like this:
2927

30-
CREATE TABLE products (
31-
id bigint NOT NULL auto_increment,
32-
name varchar(255),
33-
PRIMARY KEY (id)
34-
);
28+
CREATE TABLE products (
29+
id bigint NOT NULL auto_increment,
30+
name varchar(255),
31+
PRIMARY KEY (id)
32+
);
3533

36-
This would also define the following accessors: <tt>Product#name</tt> and
37-
<tt>Product#name=(new_name)</tt>.
34+
This would also define the following accessors: <tt>Product#name</tt> and
35+
<tt>Product#name=(new_name)</tt>.
3836

37+
{Learn more}[link:classes/ActiveRecord/Base.html]
3938

4039
* Associations between objects defined by simple class methods.
4140

0 commit comments

Comments
 (0)