20220611210335_create_user_roles.rb 397 B

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