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