Method: #create_db

Defined in:
lib/app.rb

#create_dbObject



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/app.rb', line 16

def create_db
  ActiveRecord::Migration.create_table :messages do |t|
    t.string :uuid
    t.string :message
    t.datetime :recorded_at
    t.datetime :created_at

    t.index :uuid
    t.index :message
    t.index :recorded_at
    t.index :created_at
  end
end