Class: Timetrap::EntrySchema
Constant Summary
collapse
- TABLE =
:entries
Instance Method Summary
collapse
Methods inherited from Schema
create_table, create_table!, try_create_table
Instance Method Details
#create_table ⇒ Object
22
23
24
25
26
27
28
29
30
|
# File 'lib/timetrap/schema.rb', line 22
def create_table
DB.create_table(TABLE) do
primary_key :id
column :note, String
column :start, DateTime
column :end, DateTime
column :sheet, String
end
end
|