Sha256: c2190876ed6808d02a7607723cfb70d4c3ddb984f10b057721e7c9ef6786283b
Contents?: true
Size: 676 Bytes
Versions: 17
Compression:
Stored size: 676 Bytes
Contents
class CreateEcomCoreSiteCrews < ActiveRecord::Migration[6.0] def change create_table :ecom_core_site_crews do |t| t.references :crew, null: false, index: { name: 'gp_on_crew_indx' }, foreign_key: { to_table: :ecom_core_crews } t.references :site, null: false, index: { name: 'gp_on_site_indx' }, foreign_key: { to_table: :ecom_core_sites } t.string :site_crew_type, null: false t.string :start_date, null: false t.string :end_date t.string :status, null: false, default: 'Inactive' t.timestamps end end end
Version data entries
17 entries across 17 versions & 1 rubygems