Sha256: 308e51425c9fb1e0e6236ac626c96abf7996923000ca4cae505d9655189f6626
Contents?: true
Size: 528 Bytes
Versions: 32
Compression:
Stored size: 528 Bytes
Contents
require 'active_record' class <%= class_name %> < ActiveRecord::Migration[7.0] enable_extension 'pgcrypto' unless extension_enabled?('pgcrypto') # Migration suported types reference: https://guides.rubyonrails.org/v3.2/migrations.html#supported-types def change create_table :[table-name-here-in-plural], id: :uuid do |t| # t.belongs_to :user, type: :uuid, foreing_key: true # t.belongs_to :user, type: :uuid, foreing_key: true, index: { unique: true } t.timestamps null: false end end end
Version data entries
32 entries across 28 versions & 1 rubygems