Sha256: 86116e26b15943c3bb0c64b1cdaa9d7cf0c68474615a5913eb0e65e21ae5bb96

Contents?: true

Size: 301 Bytes

Versions: 11

Compression:

Stored size: 301 Bytes

Contents

# -*- coding: utf-8 -*-
class ChangeProductsNameWithComment < ActiveRecord::Migration
  def self.up
    change_column "products", 'name', :string, :limit => 100, :comment => "名称"
  end

  def self.down
    change_column "products", 'name', :string, :limit => 50, :comment => "商品名"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
schema_comments-0.2.0 spec/migrations/valid/006_change_products_name_with_comment.rb
schema_comments-0.2.0.alpha5 spec/migrations/valid/006_change_products_name_with_comment.rb
schema_comments-0.2.0.alpha4 spec/migrations/valid/006_change_products_name_with_comment.rb
schema_comments-0.2.0.alpha3 spec/migrations/valid/006_change_products_name_with_comment.rb
schema_comments-0.2.0.alpha2 spec/migrations/valid/006_change_products_name_with_comment.rb
schema_comments-0.2.0.alpha1 spec/migrations/valid/006_change_products_name_with_comment.rb
schema_comments-0.1.4 spec/migrations/valid/006_change_products_name_with_comment.rb
schema_comments-0.1.3 spec/migrations/valid/006_change_products_name_with_comment.rb
schema_comments-0.1.2 spec/migrations/valid/006_change_products_name_with_comment.rb
schema_comments-0.1.1 spec/migrations/valid/006_change_products_name_with_comment.rb
schema_comments-0.1.0 spec/migrations/valid/006_change_products_name_with_comment.rb