Sha256: 8d303d1cb079cd3ed4020b7ec28a739b7221779889dcb4329162f599977e1d63
Contents?: true
Size: 503 Bytes
Versions: 35
Compression:
Stored size: 503 Bytes
Contents
class CreateKitheModels < ActiveRecord::Migration[5.2] def change create_table :kithe_models, id: :uuid do |t| t.string :title, null: false # Rails STI t.string :type, null: false # position in membership when in a mmebership relation t.integer :position t.jsonb :json_attributes t.timestamps end # self-referential work children/members add_reference :kithe_models, :parent, type: :uuid, foreign_key: {to_table: :kithe_models} end end
Version data entries
35 entries across 35 versions & 1 rubygems