Skip to content

Instantly share code, notes, and snippets.

@krazylegz
Forked from nertim/gist:5014613
Last active December 14, 2015 02:38
Show Gist options
  • Select an option

  • Save krazylegz/5014621 to your computer and use it in GitHub Desktop.

Select an option

Save krazylegz/5014621 to your computer and use it in GitHub Desktop.
class AddSchedulingAppointmentStatuses < ActiveRecord::Migration
def change
create_table :schapptstatc do |t|
t.string :code
t.string :descrip
t.timestamps
end
AppointmentStatus.create(:code => 'S', :description => 'Scheduled')
AppointmentStatus.create(:code => 'I', :description => 'Checked In')
AppointmentStatus.create(:code => 'O', :description => 'At Resource')
AppointmentStatus.create(:code => 'C', :description => 'Checked Out')
AppointmentStatus.create(:code => 'N', :description => 'No Show')
AppointmentStatus.create(:code => 'T', :description => 'Tentative')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment