File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ and results in this:
211
211
# The `id` column, as the primary key, is automatically created by convention.
212
212
# Columns `created_at` and `updated_at` are added by `t.timestamps`.
213
213
214
- # / db/migrate/20240220143807_create_books.rb
214
+ # db/migrate/20240220143807_create_books.rb
215
215
class CreateBooks < ActiveRecord ::Migration
216
216
def change
217
217
create_table :books do |t |
@@ -241,8 +241,8 @@ irb> book.title
241
241
242
242
NOTE: You can generate the Active Record model class as well as a matching
243
243
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
246
246
purposes.
247
247
248
248
### Creating Namespaced Models
You can’t perform that action at this time.
0 commit comments