mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 16:41:38 -04:00
lk | removes unused client tables and makes date sold a datetime to be consistent
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user