Class: Timetrap::MetaSchema

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

Constant Summary collapse

TABLE =
:meta

Instance Method Summary collapse

Methods inherited from Schema

create_table, create_table!, try_create_table

Instance Method Details

#create_tableObject



35
36
37
38
39
40
41
# File 'lib/timetrap/schema.rb', line 35

def create_table
  DB.create_table(TABLE) do
    primary_key :id
    column :key, String
    column :value, String
  end
end