summaryrefslogtreecommitdiffstats
path: root/db/migrate/20190620135549_change_roles_name_limit.rb
blob: 29f5b03c58acad5d464436c163aa0c7b0613452f (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