Skip to content

Instantly share code, notes, and snippets.

View ifyouseewendy's full-sized avatar

Di Wen ifyouseewendy

View GitHub Profile
DATES = ["2012-01-01",
"2012-02-01",
"2012-03-01",
"2012-04-01",
"2012-05-01",
"2012-06-01",
"2012-07-01",
"2012-08-01",
"2012-09-01",
"2012-10-01",
Note 1.
Single Table Inheritance
http://api.rubyonrails.org/classes/ActiveRecord/Base.html
class Teacher < User
has_many :courses
end
class Course