migration add colum with value of true code example
Example: rails migration update column default value
class MigrationName < ActiveRecord::Migration
def change
change_column :my_table, :my_column, :data_type, deafult: "value"
end
end
class MigrationName < ActiveRecord::Migration
def change
change_column :my_table, :my_column, :data_type, deafult: "value"
end
end