Class: AddInputMaskAttributesToAnswer
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddInputMaskAttributesToAnswer
- Defined in:
- lib/generators/surveyor/templates/db/migrate/add_input_mask_attributes_to_answer.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
8 9 10 11 |
# File 'lib/generators/surveyor/templates/db/migrate/add_input_mask_attributes_to_answer.rb', line 8 def self.down remove_column :answers, :input_mask remove_column :answers, :input_mask_placeholder end |
.up ⇒ Object
3 4 5 6 |
# File 'lib/generators/surveyor/templates/db/migrate/add_input_mask_attributes_to_answer.rb', line 3 def self.up add_column :answers, :input_mask, :string add_column :answers, :input_mask_placeholder, :string end |