summaryrefslogtreecommitdiffstats
path: root/db/migrate/20101114115114_change_projects_name_limit.rb
blob: e731a005de058ec89e685a7e13be70dfd72116c9 (plain)
1
2
3
4
5
6
7
8
9
class ChangeProjectsNameLimit < ActiveRecord::Migration[4.2]
  def self.up
    change_column :projects, :name, :string, :limit => nil, :default => '', :null => false
  end

  def self.down
    change_column :projects, :name, :string, :limit => 30, :default => '', :null => false
  end
end