Sha256: bce921a8693ba5b7dcc7e9aea6f568b027d5101594287a2d2dc5338813e86328
Contents?: true
Size: 641 Bytes
Versions: 5
Compression:
Stored size: 641 Bytes
Contents
class CreateEcomModelStakeholders < ActiveRecord::Migration[6.0] def change create_table :ecom_model_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_model_stakeholders, :ecom_model_stakeholder_types, column: :stakeholder_type_id end end
Version data entries
5 entries across 5 versions & 1 rubygems