The following example adds a column admin to the users table, and gives that column the default value false.
class AddDetailsToUsers < ActiveRecord::Migration[5.0]
def change
add_column :users, :admin, :boolean, default: false
end
end
Migrations with defaults might take a long tim...