Sha256: d3e35349236badccea219de42fb65d02b767fb4fcd92ebfa2227ca5c937a9c32

Contents?: true

Size: 488 Bytes

Versions: 6

Compression:

Stored size: 488 Bytes

Contents

# -*- coding: utf-8 -*-
class CreateProducts < ActiveRecord::Migration

  def self.up
    create_table "products", :comment => '商品' do |t|
      t.string   "product_type_cd", :comment => '種別コード'
      t.integer  "price", :comment => "価格"
      t.string   "name", :comment => "商品名"
      t.datetime "created_at", :comment => "登録日時"
      t.datetime "updated_at", :comment => "更新日時"
    end
  end

  def self.down
    drop_table "products"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
schema_comments-0.2.0 spec/migrations/valid/001_create_products.rb
schema_comments-0.2.0.alpha5 spec/migrations/valid/001_create_products.rb
schema_comments-0.2.0.alpha4 spec/migrations/valid/001_create_products.rb
schema_comments-0.2.0.alpha3 spec/migrations/valid/001_create_products.rb
schema_comments-0.2.0.alpha2 spec/migrations/valid/001_create_products.rb
schema_comments-0.2.0.alpha1 spec/migrations/valid/001_create_products.rb