I'm using rails 3, I want to store start_time and end_time. Since rails does not support date ranges.
which data type should I use to store the time without the date to later make comparisons?
This is my database schema with the tsrange data types in the table Schedules (which datatype should I use to replace it?).
CREATE TABLE Doctors
(
id INTEGER UNIQUE,
name VARCHAR(size)
);
CREATE TABLE Schedules
(
id INTEGER,
doctor_id INTEGER,
start_time tsrange,
end_time tsrange,
day VARCHAR(size)
);
CREATE TABLE Appointments
(
id INTEGER,
doctor_id INTEGER,
aday DATE
);