Louis Knapp
8 years ago
4 changed files with 18 additions and 9 deletions
@ -0,0 +1,7 @@ |
|||||
|
class RemoveUnusedColumnsFromClients < ActiveRecord::Migration |
||||
|
def change |
||||
|
remove_column :clients, :number_of_calls |
||||
|
remove_column :clients, :application_date_bkp |
||||
|
remove_column :clients, :pickup_date_bkp |
||||
|
end |
||||
|
end |
@ -0,0 +1,9 @@ |
|||||
|
class ChangeBikeDateSoldColumnToDateTime < ActiveRecord::Migration |
||||
|
def up |
||||
|
change_column :bikes, :date_sold, :datetime |
||||
|
end |
||||
|
|
||||
|
def down |
||||
|
change_column :bikes, :date_sold, :date |
||||
|
end |
||||
|
end |
Loading…
Reference in new issue