6 let mut test = Test::new("Remove enum");
15 values = ["happy", "ok", "sad"]
19 test.second_migration(
29 test.after_first(|db| {
30 // Ensure enum was created
35 FROM pg_catalog.pg_type
36 WHERE typcategory = 'E'
44 assert!(enum_exists, "expected mood enum to have been created");
47 test.after_completion(|db| {
48 // Ensure enum was removed after completion
49 let enum_does_not_exist = db
53 FROM pg_catalog.pg_type
54 WHERE typcategory = 'E'
64 "expected mood enum to have been removed"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list