Sha256: 2074ab266f72083ac77646fe28795edf7c75fb22e67ead115bd84a512e428af3
Contents?: true
Size: 411 Bytes
Versions: 22
Compression:
Stored size: 411 Bytes
Contents
require 'active_record' class CreatePlayerMigration < ActiveRecord::Migration[7.0] enable_extension 'pgcrypto' unless extension_enabled?('pgcrypto') def change create_table :players, id: :uuid do |t| t.belongs_to :user, type: :uuid, foreing_key: true, index: { unique: true } t.string :name, null: false t.integer :gold, null: false t.timestamps null: false end end end
Version data entries
22 entries across 18 versions & 1 rubygems