Sha256: 56ae722f202f06b46c7fcbd3953ad0fb700fb4510ace496445890eb65bc651ca

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

class CreateCloudHelpTicketHistories < ActiveRecord::Migration[6.1]
    def change
        create_table :cloud_help_ticket_histories do |t|
            t.text      :content

            # acts_as_paranoid
            t.datetime  :deleted_at, index: true

            t.timestamps
        end

        add_reference :cloud_help_ticket_histories, :cloud_help_tickets, foreign_key: true
        add_reference :cloud_help_ticket_histories, :users, foreign_key: true, index: { name: "help_ticket_histories_users" }
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lesli_help-0.1.0 db/tables/0702101210_create_cloud_help_ticket_histories.rb