Class: CreateRubyCmsPermissions
- Inherits:
-
Object
- Object
- CreateRubyCmsPermissions
- Defined in:
- lib/generators/ruby_cms/templates/db/migrate/20260125000001_create_ruby_cms_permissions.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/generators/ruby_cms/templates/db/migrate/20260125000001_create_ruby_cms_permissions.rb', line 4 def change create_table :ruby_cms_permissions, if_not_exists: true do |t| t.string :key, null: false t.string :name t. end add_index :ruby_cms_permissions, :key, unique: true, if_not_exists: true end |