Sha256: e0bbde3ef6241013a467f4e8616abbf257316201a74f42fa1488094275c375f4

Contents?: true

Size: 228 Bytes

Versions: 78

Compression:

Stored size: 228 Bytes

Contents

class JsonbPromiseResult < ActiveRecord::Migration[5.1]
  def change
    table = :marty_promises

    execute "delete from #{table}"

    change_column table, :result, :jsonb, default: {}, using: 'result::text::jsonb'
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
marty-14.3.0 db/migrate/410_jsonb_promise_result.rb
marty-14.0.0 db/migrate/410_jsonb_promise_result.rb
marty-13.0.2 db/migrate/410_jsonb_promise_result.rb
marty-11.0.0 db/migrate/410_jsonb_promise_result.rb
marty-10.0.3 db/migrate/410_jsonb_promise_result.rb
marty-10.0.2 db/migrate/410_jsonb_promise_result.rb
marty-10.0.0 db/migrate/410_jsonb_promise_result.rb
marty-9.5.1 db/migrate/410_jsonb_promise_result.rb
marty-9.5.0 db/migrate/410_jsonb_promise_result.rb
marty-9.3.3 db/migrate/410_jsonb_promise_result.rb
marty-9.3.2 db/migrate/410_jsonb_promise_result.rb
marty-9.3.0 db/migrate/410_jsonb_promise_result.rb
marty-8.5.0 db/migrate/410_jsonb_promise_result.rb
marty-8.4.1 db/migrate/410_jsonb_promise_result.rb
marty-8.3.1 db/migrate/410_jsonb_promise_result.rb
marty-8.2.0 db/migrate/410_jsonb_promise_result.rb
marty-8.0.0 db/migrate/410_jsonb_promise_result.rb
marty-6.1.0 db/migrate/410_jsonb_promise_result.rb
marty-5.2.0 db/migrate/410_jsonb_promise_result.rb
marty-5.1.4 db/migrate/410_jsonb_promise_result.rb