Class: Timetrap::EntrySchema

Inherits:
Schema
  • Object
show all
Defined in:
lib/timetrap/schema.rb

Constant Summary collapse

TABLE =
:entries

Instance Method Summary collapse

Methods inherited from Schema

create_table, create_table!, try_create_table

Instance Method Details

#create_tableObject



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