Sha256: 6bd8928944700b5c3cf68cf72cded374a1e9c0fa4224a35e6111d2bf9f3f0482

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

class CreateCloudDriverEventAttendants < ActiveRecord::Migration[6.0]
    def change
        create_table :cloud_driver_event_attendants do |t|
            t.datetime :confirmed_at

            # acts_as_paranoid
            t.datetime :deleted_at, index: true
            t.timestamps
        end
        add_reference(:cloud_driver_event_attendants, :user,  foreign_key: { to_table: :users })
        add_reference(:cloud_driver_event_attendants, :event, foreign_key: { to_table: :cloud_driver_events })
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lesli_driver-0.2.0 db/tables/0301111010_create_lesli_driver_event_attendants.rb
lesli_driver-0.1.0 db/tables/0301111010_create_lesli_driver_event_attendants.rb