view db/migrate/044_set_language_length_to_five.rb @ 815:4d3ac2b4156c luisf

Strips any possible html tags in the project tags input (both client and server side).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 23 Nov 2011 16:10:03 +0000
parents 513646585e45
children
line wrap: on
line source
class SetLanguageLengthToFive < ActiveRecord::Migration
  def self.up
    change_column :users, :language, :string, :limit => 5, :default => ""
  end

  def self.down
    raise IrreversibleMigration
  end
end