summaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20190620135549_change_roles_name_limit.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20190620135549_change_roles_name_limit.rb b/db/migrate/20190620135549_change_roles_name_limit.rb
new file mode 100644
index 000000000..29f5b03c5
--- /dev/null
+++ b/db/migrate/20190620135549_change_roles_name_limit.rb
@@ -0,0 +1,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