Skip to content

Commit 8499757

Browse files
Use relative paths on AR basics guide [ci skip]
Most other examples follow this pattern. Plus, using a relative filepath on the code block will now remove it when using the copy button.
1 parent 6e551d2 commit 8499757

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/source/active_record_basics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ and results in this:
211211
# The `id` column, as the primary key, is automatically created by convention.
212212
# Columns `created_at` and `updated_at` are added by `t.timestamps`.
213213

214-
# /db/migrate/20240220143807_create_books.rb
214+
# db/migrate/20240220143807_create_books.rb
215215
class CreateBooks < ActiveRecord::Migration
216216
def change
217217
create_table :books do |t|
@@ -241,8 +241,8 @@ irb> book.title
241241

242242
NOTE: You can generate the Active Record model class as well as a matching
243243
migration with the command `bin/rails generate model Book title:string
244-
author:string`. This creates the files `/app/models/book.rb`,
245-
`/db/migrate/20240220143807_create_books.rb`, and a couple others for testing
244+
author:string`. This creates the files `app/models/book.rb`,
245+
`db/migrate/20240220143807_create_books.rb`, and a couple others for testing
246246
purposes.
247247

248248
### Creating Namespaced Models

0 commit comments

Comments
 (0)