Class: CreateSessions

Inherits:
Object
  • Object
show all
Defined in:
lib/nexmo_developer/db/migrate/20170413154510_create_sessions.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/nexmo_developer/db/migrate/20170413154510_create_sessions.rb', line 2

def change
  create_table :sessions, id: :uuid do |t|
    t.string :title
    t.text :description
    t.string :author
    t.uuid :event_id
    t.string :video_url

    t.timestamps
  end
end