class AddStartDateToEmployee < ActiveRecord::Migration[5.2]
def change
add_column :employees, :start_date, :date, index: true, default: '1900-01-01'
end
end
Related Post
TIL: Running Rails 5 / Ruby 2 on Ubuntu 2022.4
Posted on by Karl
TIL – Generating a Model that `references` an Alias
Posted on by Karl
The Difference Between PVID vs Untagged VLANs
Posted on by Karl