You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: 20200413131001_fix_rails_compliance_to_journal_entry.rb
    path of file: ./repos/ekylibre/db/migrate
    
    the code of the file until where you have to start completion: class FixRailsComplianceToJournalEntry < ActiveRecord::Migration[5.0]
  def change
    reversible do |dir|
      dir.up do
        change_column_default :journal_entries, :compliance, from: '{}', to: {}
        execute "UPDATE journal_entrie
    
  def change
    reversible do |dir|
      dir.up do
        change_column_default :journal_entries, :compliance, from: '{}', to: {}
        execute "UPDATE journal_entries SET compliance = '{}'::jsonb WHERE compliance = '\"{}\"'"
      end
      dir.down do
        change_column_default :journal_entries, :compliance, from: {}, to: '{}'
        execute "UPDATE journal_entries SET compliance = '\"{}\"' WHERE compliance = '{}'::jsonb"
      end
    end
  end