Class: DropCareersTable

Inherits:
Object
  • Object
show all
Defined in:
lib/nexmo_developer/db/migrate/20190711141227_drop_careers_table.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/nexmo_developer/db/migrate/20190711141227_drop_careers_table.rb', line 2

def change
  drop_table :careers, if_exists: true do |t|
    t.string  :title
    t.boolean :published
    t.string  :location
    t.text    :description
    t.string  :url
    t.string  :summary
    t.string  :icon
    t.string  :slug
    t.text    :description_short
    t.string  :role_group
    t.timestamps

    t.index   :published
    t.index   :role_group
    t.index   :slug
  end
end