Sha256: ff8ad4c7c84013dd9e1dc1c73e752945ca8bfc9dafe8f3ab14ee29d55662ec1e
Contents?: true
Size: 561 Bytes
Versions: 5
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true ActiveRecord::Schema.define do create_table :products, force: true do |t| t.string :title, null: false t.text :description t.integer :rating, limit: 1 t.timestamps null: false end create_table :product_variations, force: true do |t| t.belongs_to :product, null: false, foreign_key: true t.string :title, null: false t.string :currency, null: false, default: 'USD' t.integer :amount, null: false, default: 0 t.integer :stock_status, limit: 1 t.timestamps null: false end end
Version data entries
5 entries across 5 versions & 1 rubygems