Sha256: 8542b6d7d276d0bdceaeda23bfbcd60cb4bb085bf19757acab487025b961e7a6
Contents?: true
Size: 512 Bytes
Versions: 14
Compression:
Stored size: 512 Bytes
Contents
class CreateComeeCoreSuppliers < ActiveRecord::Migration[7.0] def change create_table :comee_core_suppliers do |t| t.string :code, null: false t.string :name, null: false t.string :address, null: false t.string :locale, null: false, default: "en" t.references :user, null: true, index: {name: "user_on_ccs_indx"}, foreign_key: {to_table: :comee_core_users} t.timestamps end add_index :comee_core_suppliers, :code, unique: true end end
Version data entries
14 entries across 14 versions & 1 rubygems