Skip to content

Commit

Permalink
fix: refresh matrix and head_matrix tables
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Mar 30, 2018
1 parent 1e8ff60 commit bf36c61
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions db/migrations/20180330_refresh_matrix.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bf36c61

Please sign in to comment.