diff --git a/db/migrations/20180330_refresh_matrix.rb b/db/migrations/20180330_refresh_matrix.rb new file mode 100644 index 000000000..4547cd0b6 --- /dev/null +++ b/db/migrations/20180330_refresh_matrix.rb @@ -0,0 +1,12 @@ +Sequel.migration do + up do + from(:materialized_matrix).delete + from(:materialized_matrix).insert(from(:matrix).select_all) + from(:materialized_head_matrix).delete + from(:materialized_head_matrix).insert(from(:head_matrix).select_all) + end + + down do + + end +end