Sha256: ef9e6d2eba3cb2803436a2feafd9458a746f42bf6e7d42e9313a3e9e1ab1bdbe
Contents?: true
Size: 637 Bytes
Versions: 61
Compression:
Stored size: 637 Bytes
Contents
class CreateEcomCoreStakeholders < ActiveRecord::Migration[6.0] def change create_table :ecom_core_stakeholders do |t| t.string :name, null: false, unique: true t.string :type_of_business t.string :address t.string :license_no t.string :tin_no t.string :contact_name, null: false t.string :contact_phone, null: false t.string :contact_email, null: false t.references :stakeholder_type, index: { name: 'em_stakeholders_on_type_indx' } t.timestamps end add_foreign_key :ecom_core_stakeholders, :ecom_core_stakeholder_types, column: :stakeholder_type_id end end
Version data entries
61 entries across 61 versions & 1 rubygems