Sha256: a3569235aba2e0042c305b912ec037c8ec64600759e6f606dfda0de82ce41c9c
Contents?: true
Size: 487 Bytes
Versions: 18
Compression:
Stored size: 487 Bytes
Contents
class AddProductDimensions < ActiveRecord::Migration def self.up change_table :variants do |t| t.decimal :weight, :precision => 8, :scale => 2 t.decimal :height, :precision => 8, :scale => 2 t.decimal :width, :precision => 8, :scale => 2 t.decimal :depth, :precision => 8, :scale => 2 end end def self.down change_table :variants do |t| t.remove :weight t.remove :height t.remove :width t.remove :depth end end end
Version data entries
18 entries across 18 versions & 3 rubygems