Sha256: 0ba60008fba11174561ae5c7f19b0f43e8320cbb88cd4be4fcfb54270f97dab9

Contents?: true

Size: 411 Bytes

Versions: 45

Compression:

Stored size: 411 Bytes

Contents

class CreateSatisUserData < ActiveRecord::Migration[6.1]
  def change
    create_table :satis_user_data, id: :uuid do |t|
      t.string :key, null: false
      t.jsonb :data, null: false, default: {}
      t.belongs_to :user, null: false, foreign_key: true, type: :uuid

      t.timestamps
    end
    add_index :satis_user_data, :key, unique: true
    add_index :satis_user_data, :data, using: :gin
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
satis-2.1.47 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.46 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.45 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.44 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.43 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.42 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.41 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.40 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.39 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.38 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.37 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.36 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.35 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.33 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.31 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.30 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.29 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.28 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.27 db/migrate/20220929142147_create_satis_user_data.rb
satis-2.1.26 db/migrate/20220929142147_create_satis_user_data.rb