summaryrefslogtreecommitdiffstats
path: root/db/migrate/20190620135549_change_roles_name_limit.rb
blob: 691a411fd8bcdf7a8102bb85251a11b1e5bedb24 (plain)
1
2
3
4
5
6
7
8
9
class ChangeRolesNameLimit < ActiveRecord::Migration[5.2]
  def self.up
    change_column :roles, :name, :string, :limit => 255, :default => ''
  end

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