1
0

20220611210335_create_user_roles.rb 428 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class CreateUserRoles < ActiveRecord::Migration[6.1]
  3. def change
  4. create_table :user_roles do |t|
  5. t.string :name, null: false, default: ''
  6. t.string :color, null: false, default: ''
  7. t.integer :position, null: false, default: 0
  8. t.bigint :permissions, null: false, default: 0
  9. t.boolean :highlighted, null: false, default: false
  10. t.timestamps
  11. end
  12. end
  13. end