Sha256: 7c9a5861d9b98fe45c5b0cc4c2b4b00edc713cb981b0a59e3e87c2f8eb341e19
Contents?: true
Size: 777 Bytes
Versions: 4
Compression:
Stored size: 777 Bytes
Contents
class CreateComeeCoreClientPrices < ActiveRecord::Migration[7.0] def change create_table :comee_core_client_prices do |t| t.date :valid_from, null: false t.date :valid_to, null: false t.float :old_price, null: true t.float :new_price, null: false t.float :future_price, null: true t.date :future_validity, null: true t.references :product, null: false, index: {name: "product_on_cccp_indx"}, foreign_key: {to_table: :comee_core_products} t.references :client, null: false, index: {name: "client_on_cccp_indx"}, foreign_key: {to_table: :comee_core_clients} t.timestamps end add_index :comee_core_client_prices, [:product_id, :client_id], unique: true end end
Version data entries
4 entries across 4 versions & 1 rubygems