Class: AddScopeToTexts
- Inherits:
-
Object
- Object
- AddScopeToTexts
- Defined in:
- lib/generators/templates/20191024063257_add_scope_to_texts.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 |
# File 'lib/generators/templates/20191024063257_add_scope_to_texts.rb', line 2 def change add_column :texts, :scope, :string remove_index :texts, :key add_index :texts, [:scope, :key], unique: true end |