Sha256: 0c1c576b09d678c06e23eaa37b7ba219d5350fff442e4496b0778e9b7f58ae9c

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

class CreateCloudDriverCatalogEventTypes < ActiveRecord::Migration[6.1]
    def change
        create_table :cloud_driver_catalog_event_types do |t|
            t.string :name
            t.string :model_type, index: true

            # acts_as_paranoid
            t.datetime :deleted_at, index: true

            t.timestamps
        end
        add_reference(:cloud_driver_catalog_event_types, :account, foreign_key: { to_table: :cloud_driver_accounts })
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lesli_driver-0.2.0 db/tables/0301010210_create_lesli_driver_catalog_event_types.rb
lesli_driver-0.1.0 db/tables/0301010210_create_lesli_driver_catalog_event_types.rb