Skip to content

Commit 55edde7

Browse files
fxnjoelhawksley
authored andcommitted
Revise formatting in railties/CHANGELOG.md
Main motivation here was to fix the listings, they lacked markup. Since I was on it, I edited the H1 Markdown headers, these are not really used in individual CHANGELOG entries.
1 parent ee6cb9e commit 55edde7

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

railties/CHANGELOG.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
11
* Add authentication generator to give a basic start to an authentication system using database-tracked sessions.
22

3+
Generate with...
34

4-
# Generate with...
5+
```
56
bin/rails generate authentication
7+
```
68
7-
# Generated files
9+
Generated files:
10+
11+
```
812
app/models/current.rb
913
app/models/user.rb
1014
app/models/session.rb
1115
app/controllers/sessions_controller.rb
1216
app/views/sessions/new.html.erb
1317
db/migrate/xxxxxxx_create_users.rb
1418
db/migrate/xxxxxxx_create_sessions.rb
15-
19+
```
1620
1721
*DHH*
1822
1923
2024
* Add not-null type modifier to migration attributes.
2125
26+
Generating with...
2227
23-
# Generating with...
28+
```
2429
bin/rails generate migration CreateUsers email_address:string!:uniq password_digest:string!
30+
```
2531
26-
# Produces:
32+
Produces:
33+
34+
```ruby
2735
class CreateUsers < ActiveRecord::Migration[8.0]
2836
def change
2937
create_table :users do |t|
@@ -35,7 +43,7 @@
3543
add_index :users, :email_address, unique: true
3644
end
3745
end
38-
46+
```
3947
4048
*DHH*
4149

0 commit comments

Comments
 (0)