Sha256: 1c839f98d24dd7e49938023ea67c34eaa8f3a9f6a7c89b5d6683f92f8b485b1b
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 Bytes
Contents
class CreateCloudHelpTicketAssignments < ActiveRecord::Migration[6.0] def change create_table :cloud_help_ticket_assignments do |t| t.bigint :team_id t.string :assignment_type # acts_as_paranoid t.datetime :deleted_at, index: true t.timestamps end add_reference(:cloud_help_ticket_assignments, :ticket, foreign_key: { to_table: :cloud_help_tickets }) add_reference(:cloud_help_ticket_assignments, :users, foreign_key: { to_table: :users }) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lesli_help-0.1.0 | db/tables/0702101110_create_cloud_help_ticket_assignments.rb |