Class: CreateCareers

Inherits:
Object
  • Object
show all
Defined in:
lib/nexmo_developer/db/migrate/20180306142355_create_careers.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :careers, id: :uuid do |t|
    t.string :title
    t.boolean :published
    t.string :location
    t.text :description
    t.string :url

    t.timestamps
  end
  add_index :careers, :published
end