README.md in arel-mysql-index-hint-0.1.0 vs README.md in arel-mysql-index-hint-0.1.1
- old
+ new
@@ -23,9 +23,12 @@
$ gem install arel-mysql-index-hint
## Usage
```ruby
+Article.hint(idx_article: :force)
+# => "SELECT `articles`.* FROM `articles` force INDEX (idx_article)"
+
Article.joins(:comments).hint(articles: {idx_article: :use})
# => "SELECT `articles`.* FROM `articles` use INDEX (idx_article) INNER JOIN `comments` ON `comments`
Article.joins(:comments).hint(comments: {idx_comment: :force})
# => "SELECT `articles`.* FROM `articles` INNER JOIN `comments` force INDEX (idx_comment) ON `comments"