Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
otorain authored Jan 24, 2024
1 parent 06881ea commit 047b9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ TableInspector.scan User, :name

It will print the column definition and which indexes that contains this column.

If you are using Ruby version 2.7.0 or later, you can define a helper method directly in the model itself by editing the `app/models/application_record.rb` file and adding the code provided above:
If you are using Ruby version 2.7.0 or later, you can define a helper method directly in the model itself by editing the `app/models/application_record.rb` file and adding the code provided below:
```ruby
# app/models/application_record.rb
class ApplicationRecord < ActiveRecord::Base
Expand Down

0 comments on commit 047b9ac

Please sign in to comment.