Work with our skilled Ruby on Rails developers to accelerate your project and boost its performance.
Hire Ruby on Rails DeveloperIf you are a Rails Developer then you might have seen a decimal number in the migration file and probably no doubt that you have ignored it every time so I have. But today let’s face and find it out, what it is !!!
class AddFewColumns < ActiveRecord::Migration[7.1] #data alteration codde end
Let’s discuss what it is
The [7.1] within ActiveRecord::Migration[7.1] specifies the version of ActiveRecord that this migration is intended to be run under.
In a more simplified way
Imagine it like this:
It’s like telling a recipe book which edition it’s written for, making sure you follow the right steps with the right recipe. Otherwise, it can spoil your application meal.
So it is what it is..!