VRFS-2916 cohort model/table

This commit is contained in:
Jonathan Kolyer 2015-03-13 07:10:39 +00:00
parent 5fa37abfb3
commit b38370589f
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,4 @@
class Cohort < ActiveRecord::Base
end

9
db/up/cohorts.sql Normal file
View File

@ -0,0 +1,9 @@
CREATE TABLE cohorts {
id VARCHAR(64) PRIMARY KEY DEFAULT uuid_generate_v4(),
start_date TIMESTAMP NOT NULL,
end_date TIMESTAMP NOT NULL,
group_type VARCHAR(64) NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
};