You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
491 B
19 lines
491 B
class ChangeDatetime < ActiveRecord::Migration[6.1] |
|
def up |
|
change_table :case_logs, bulk: true do |t| |
|
t.remove :sale_completion_date |
|
t.column :sale_completion_date, :datetime |
|
t.remove :startdate |
|
t.column :startdate, :datetime |
|
end |
|
end |
|
|
|
def down |
|
change_table :case_logs, bulk: true do |t| |
|
t.remove :sale_completion_date |
|
t.column :sale_completion_date, :string |
|
t.remove :startdate |
|
t.column :startdate, :string |
|
end |
|
end |
|
end
|
|
|