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