Sha256: 84cbd4ed9cb769ae8eea37f00e0128e16688d4d960338511ebc5331fd40da27d

Contents?: true

Size: 397 Bytes

Versions: 36

Compression:

Stored size: 397 Bytes

Contents

class ChangeSatisUserData < ActiveRecord::Migration[7.0]
  disable_ddl_transaction!
  def change
    change_column :satis_user_data, :data, :jsonb, null: true, default: {}
    change_column :satis_user_data, :user_id, :uuid, null: true, foreign_key: true

    remove_index :satis_user_data, [:key]
    add_index :satis_user_data, [:user_id, :key], unique: true, algorithm: :concurrently
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
satis-2.1.43 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.42 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.41 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.40 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.39 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.38 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.37 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.36 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.35 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.33 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.31 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.30 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.29 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.28 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.27 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.26 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.24 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.23 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.22 db/migrate/20221212083110_change_satis_user_data.rb
satis-2.1.21 db/migrate/20221212083110_change_satis_user_data.rb