Sha256: c56e70018e2cb8aecdf9b067483b7e2ccf23bd3d3d5e49d64944d45d8f1f8ead
Contents?: true
Size: 404 Bytes
Versions: 6
Compression:
Stored size: 404 Bytes
Contents
class CreateVariants < ActiveRecord::Migration def self.up create_table :shop_variants do |t| t.string :name t.text :options_json end create_table :shop_product_variants do |t| t.string :name t.decimal :price t.integer :product_id end end def self.down remove_table :shop_variants remove_table :shop_product_variants end end
Version data entries
6 entries across 6 versions & 1 rubygems