|
|
@ -0,0 +1,17 @@ |
|
|
|
class AddTruckInfoToEmployee < ActiveRecord::Migration |
|
|
|
def self.up |
|
|
|
add_column :people, :dl_number, :string |
|
|
|
add_column :people, :dl_state, :string |
|
|
|
add_column :people, :dl_expire, :date |
|
|
|
add_column :people, :truck, :string |
|
|
|
add_column :people, :trailer, :string |
|
|
|
end |
|
|
|
|
|
|
|
def self.down |
|
|
|
remove_column :people, :trailer |
|
|
|
remove_column :people, :truck |
|
|
|
remove_column :people, :dl_expire |
|
|
|
remove_column :people, :dl_state |
|
|
|
remove_column :people, :dl_number |
|
|
|
end |
|
|
|
end |