Sha256: 62fc7cda9848fe0902d941c97f82227b4d30dd4af15c16ba2e90f951de82b8dd

Contents?: true

Size: 779 Bytes

Versions: 24

Compression:

Stored size: 779 Bytes

Contents

class CreateEcomCoreScheduleSettings < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_schedule_settings do |t|
      t.references :equipment,
                   null: false,
                   index: { name: 'ss_on_equipment_indx' },
                   foreign_key: { to_table: :ecom_core_equipment }
      t.references :maintenance_type,
                   null: false,
                   index: { name: 'ss_on_mt_indx' },
                   foreign_key: { to_table: :ecom_core_maintenance_types }
      t.references :schedule_unit,
                   null: false,
                   index: { name: 'ss_in_su_indx' },
                   foreign_key: { to_table: :ecom_core_lookups }
      t.float :value, null: false

      t.timestamps
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ecom_core-1.3.14 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.13 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.12 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.11 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.10 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.9 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.8 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.7 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.6 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.5 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.4 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.3 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.2 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.1 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.3.0 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.2.36 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.2.35 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.2.34 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.2.33 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb
ecom_core-1.2.32 db/migrate/20200919072216_create_ecom_core_schedule_settings.rb