Sha256: 805cbb23d18230a8c5a00e9b62b13f3920c0afe5558c5c1973358c37d0069555

Contents?: true

Size: 228 Bytes

Versions: 11

Compression:

Stored size: 228 Bytes

Contents

# -*- coding: utf-8 -*-
class ChangeProductsName < ActiveRecord::Migration
  def self.up
    change_column "products", 'name', :string, :limit => 50
  end

  def self.down
    change_column "products", 'name', :string
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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