Complete the code to change the column type of 'age' to integer in a Rails migration.
change_column :users, :age, :[1]The change_column method changes the type of an existing column. Here, 'age' should be an integer.
Complete the migration code to change the 'price' column type to decimal.
change_column :products, :price, :[1]Decimal type is used for precise numbers like prices.
Fix the error in this migration code to change 'published' column to boolean type.
change_column :articles, :published, [1]The column type must be a symbol like :boolean in Rails migrations.
Fill both blanks to change the 'start_date' column to datetime and allow null values.
change_column :events, :start_date, :[1], null: [2]
Use :datetime for date and time columns. Setting null: true allows null values.
Fill all three blanks to change 'score' column to float, set default to 0.0, and disallow nulls.
change_column :games, :score, :[1], default: [2], null: [3]
Float type stores decimal numbers. Default is set to 0.0 and null is disallowed with null: false.