Commit aa25539987d1515422683825b9d6f22748c2dc7f

Authored by Larissa Reis
1 parent fd4ced10

removes trailing whitespaces

plugins/custom_forms/db/migrate/20131107050913_add_position_to_field_and_alternatives.rb
@@ -2,11 +2,11 @@ class AddPositionToFieldAndAlternatives < ActiveRecord::Migration @@ -2,11 +2,11 @@ class AddPositionToFieldAndAlternatives < ActiveRecord::Migration
2 def self.up 2 def self.up
3 change_table :custom_forms_plugin_fields do |t| 3 change_table :custom_forms_plugin_fields do |t|
4 t.integer :position, :default => 0 4 t.integer :position, :default => 0
5 - end 5 + end
6 6
7 change_table :custom_forms_plugin_alternatives do |t| 7 change_table :custom_forms_plugin_alternatives do |t|
8 t.integer :position, :default => 0 8 t.integer :position, :default => 0
9 - end 9 + end
10 10
11 CustomFormsPlugin::Field.find_each do |f| 11 CustomFormsPlugin::Field.find_each do |f|
12 f.position = f.id 12 f.position = f.id
@@ -22,10 +22,10 @@ class AddPositionToFieldAndAlternatives < ActiveRecord::Migration @@ -22,10 +22,10 @@ class AddPositionToFieldAndAlternatives < ActiveRecord::Migration
22 def self.down 22 def self.down
23 change_table :custom_forms_plugin_fields do |t| 23 change_table :custom_forms_plugin_fields do |t|
24 t.remove :position 24 t.remove :position
25 - end 25 + end
26 26
27 change_table :custom_forms_plugin_alternatives do |t| 27 change_table :custom_forms_plugin_alternatives do |t|
28 t.remove :position 28 t.remove :position
29 - end 29 + end
30 end 30 end
31 end 31 end