Sha256: 0c1d593a9debfb68a110403c8add7fbf44749c30f45d941afdae3fca5d880895
Contents?: true
Size: 448 Bytes
Versions: 7
Compression:
Stored size: 448 Bytes
Contents
require 'active_record' class <%= class_name %> < ActiveRecord::Migration[7.0] # Migration suported types reference: https://guides.rubyonrails.org/v3.2/migrations.html#supported-types def change create_table :[table-name-here-in-plural] 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
7 entries across 7 versions & 1 rubygems