Sha256: c595c24eed3914623160764b0f9c517c5e9b4fb47b9a391f44a9163eeecb5ef6

Contents?: true

Size: 301 Bytes

Versions: 21

Compression:

Stored size: 301 Bytes

Contents

class ChangeAuditedChangesTypeToJsonb < ActiveRecord::Migration[5.0]
  def self.up
    remove_column :audits, :audited_changes
    add_column :audits, :audited_changes, :jsonb
  end

  def self.down
    remove_column :audits, :audited_changes
    add_column :audits, :audited_changes, :text
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
audited-5.5.0 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.4.3 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.4.2 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.4.1 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.4.0 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.3.3 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.3.2 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.3.1 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.3.0 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.2.0 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.1.0 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
velocity_audited-6.0.4 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
velocity_audited-6.0.3 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
velocity_audited-6.0.1 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
velocity_audited-5.1.6 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
velocity_audited-5.1.5 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
velocity_audited-5.1.4 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
velocity_audited-5.1.3 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.0.2 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb
audited-5.0.1 spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb