Bacancy Technology
Bacancy Technology represents the connected world, offering innovative and customer-centric information technology experiences, enabling Enterprises, Associates and the Society to Rise™.
12+
Countries where we have happy customers
1050+
Agile enabled employees
06
World wide offices
12+
Years of Experience
05
Agile Coaches
14
Certified Scrum Masters
1000+
Clients projects
1458
Happy customers
Artificial Intelligence
Machine Learning
Salesforce
Microsoft
SAP
October 26, 2023
If 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..!