Sha256: af2dd2198c89f6ba7daded23e961f81fe12306dfeb8b503cc94926b60be7a17b
Contents?: true
Size: 257 Bytes
Versions: 4
Compression:
Stored size: 257 Bytes
Contents
class AddUuid<%= class_name %> < ActiveRecord::Migration disable_ddl_transaction! def change change_table(:<%= plural_name %>) do |t| t.string :uuid, :string, limit: 40 end add_index(:<%= plural_name %>, :uuid, unique: true) end end
Version data entries
4 entries across 4 versions & 1 rubygems