Update created_at column of ft_billing to be non-nullable

`created_at` was added previously and made nullable temporarily. This
commit now populates the column, ensures that it will always have a
value, and makes `created_at` non-nullable.
This commit is contained in:
Katie Smith
2018-05-22 14:49:48 +01:00
parent b405b131f6
commit c6c118fea1
5 changed files with 35 additions and 7 deletions

View File

@@ -447,6 +447,7 @@ def test_create_nightly_billing_update_when_record_exists(
assert len(records) == 1
assert records[0].bst_date == date(2018, 1, 14)
assert records[0].billable_units == 1
assert not records[0].updated_at
sample_notification(
notify_db,
@@ -465,3 +466,4 @@ def test_create_nightly_billing_update_when_record_exists(
create_nightly_billing()
assert len(records) == 1
assert records[0].billable_units == 2
assert records[0].updated_at