Sha256: 3cdfd3c5d32debb07d6ca912ebb5e12f55337c123a29f2179799f5c34b0e4f21
Contents?: true
Size: 387 Bytes
Versions: 21
Compression:
Stored size: 387 Bytes
Contents
class CreateProducts < ActiveRecord::Migration def self.up create_table :products do |t| t.string :name, :default => "", :null => false t.text :description t.decimal :master_price, :precision => 8, :scale => 2 t.integer :category_id t.integer :viewable_id t.timestamps end end def self.down drop_table "products" end end
Version data entries
21 entries across 21 versions & 3 rubygems