diaspora/db/migrate/20110405170101_fix_stream_queries.rb
2011-04-05 11:40:32 -07:00

11 lines
266 B
Ruby

class FixStreamQueries < ActiveRecord::Migration
def self.up
change_column :posts, :type, :string, :limit => 40
remove_index :posts, :type
end
def self.down
add_index :posts, :type
change_column :posts, :type, :string, :limit => 127
end
end