... | @@ -17,7 +17,7 @@ create_enum :status, %i(foo bar), prefix: true |
... | @@ -17,7 +17,7 @@ create_enum :status, %i(foo bar), prefix: true |
|
create_enum :status, %i(foo bar), suffix: 'tst'
|
|
create_enum :status, %i(foo bar), suffix: 'tst'
|
|
```
|
|
```
|
|
|
|
|
|
Then you can also manage this type along other migrations, like rename, add values, or delete it.
|
|
You can also manage this type along other migrations, renaming, adding values, or deleting it.
|
|
```ruby
|
|
```ruby
|
|
# Rename enum by renaming the type it represents
|
|
# Rename enum by renaming the type it represents
|
|
rename_type :status, :content_status
|
|
rename_type :status, :content_status
|
... | | ... | |