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

Version Path
comee_core-0.1.23 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.22 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.21 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.20 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.19 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.18 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.17 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.16 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.15 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.14 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.13 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.12 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.11 db/migrate/20230728122618_create_comee_core_suppliers.rb
comee_core-0.1.10 db/migrate/20230728122618_create_comee_core_suppliers.rb