Sha256: c46dc617e1306a204a4d9f4d2ffc6d45e739cfaf4b0f7c1fc085333a58fb43ef

Contents?: true

Size: 325 Bytes

Versions: 8

Compression:

Stored size: 325 Bytes

Contents

class ChangeColumnTest < ActiveRecord::Migration
  def up
    change_column_default(:test_tables, :tmp_str, nil)
    change_column(:test_tables, :tmp_str, :text, :limit => 32, :null => (false))
  end
  
  def down
    change_column(:test_tables, :tmp_str, :string, :limit => 16, :default => "xyz", :null => (false))
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
visual_migrate-4.1.7.0 test/dummy/db/migrate/20131030105601_change_column_test.rb
visual_migrate-4.1.0.0 test/dummy/db/migrate/20131030105601_change_column_test.rb
visual_migrate-4.0.2.0 test/dummy/db/migrate/20131030105601_change_column_test.rb
visual_migrate-4.0.1.6 test/dummy/db/migrate/20131030105601_change_column_test.rb
visual_migrate-4.0.1.5 test/dummy/db/migrate/20131030105601_change_column_test.rb
visual_migrate-4.0.1.4 test/dummy/db/migrate/20131030105601_change_column_test.rb
visual_migrate-4.0.1.3 test/dummy/db/migrate/20131030105601_change_column_test.rb
visual_migrate-4.0.1.2 test/dummy/db/migrate/20131030105601_change_column_test.rb