obdev/db/migrate/20240409215110_add_details_...

12 lines
406 B
Ruby
Raw Permalink Normal View History

class AddDetailsToUsers < ActiveRecord::Migration[7.1]
def change
add_column :users, :first_name, :string
add_column :users, :last_name, :string
add_column :users, :phone, :string
add_column :users, :company, :string
add_column :users, :access_revoked, :boolean, default: false
add_column :users, :access_start_date, :date
add_column :users, :access_end_date, :date
end
end