When generating a new migration using bin/rails g migration CreateUser
the first line will look like this:
class CreateUser < ActiveRecord::Migration[5.1]
What does the [5.1]
stand for and how does it work?
This is a follow up on What’s does the [5.0] in Rails 5’s ActiveRecord::Migration mean? as it does not explain how this is legal ruby and does not show up in search using [5.1]
or brackets