Class: CreateEmailBlocklists
- Inherits:
-
Object
- Object
- CreateEmailBlocklists
- Defined in:
- lib/generators/ruby_cms/templates/db/migrate/20251121085414_create_email_blocklists.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/ruby_cms/templates/db/migrate/20251121085414_create_email_blocklists.rb', line 2 def change create_table :email_blocklists, if_not_exists: true do |t| t.string :email, null: false t.text :note t. end add_index :email_blocklists, :email, unique: true, if_not_exists: true end |