Sha256: 1334b4a7ce865870ad04c2f0fcb1fe1038b24b1496131cb613fef664866bedbc

Contents?: true

Size: 292 Bytes

Versions: 3

Compression:

Stored size: 292 Bytes

Contents

class AddUuids < ActiveRecord::Migration[7.0]
  def change
    [
      :federails_actors,
      :federails_activities,
      :federails_followings,
    ].each do |table|
      change_table table do |t|
        t.string :uuid, default: nil, index: { unique: true }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
federails-0.4.0 db/migrate/20241002094500_add_uuids.rb
federails-0.3.0 db/migrate/20241002094500_add_uuids.rb
federails-0.2.0 db/migrate/20241002094500_add_uuids.rb