Browse Source
* Add major repairs dates validation * Add more key dates validations * Add remaining validations Co-authored-by: Dushan <dushan-madetech@users.noreply.github.com> * Move validation tests from feature to model spec Co-authored-by: Dushan <dushan-madetech@users.noreply.github.com> * Fix dates for validation in complete case log fixture Co-authored-by: Dushan <dushan-madetech@users.noreply.github.com> * schema fix * fix all tests 🙌 * lint fixes 😎 * recactor out a conditional method Co-authored-by: Kat <katrina@madetech.com> Co-authored-by: Dushan <dushan-madetech@users.noreply.github.com>pull/116/head
Dushan
3 years ago
committed by
GitHub
6 changed files with 201 additions and 17 deletions
@ -0,0 +1,15 @@ |
|||||||
|
class ChangePropertyVoidDateType < ActiveRecord::Migration[6.1] |
||||||
|
def up |
||||||
|
change_table :case_logs, bulk: true do |t| |
||||||
|
t.remove :property_void_date |
||||||
|
t.column :property_void_date, :datetime |
||||||
|
end |
||||||
|
end |
||||||
|
|
||||||
|
def down |
||||||
|
change_table :case_logs, bulk: true do |t| |
||||||
|
t.remove :property_void_date |
||||||
|
t.column :property_void_date, :string |
||||||
|
end |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue