public/js/app.js in localtower-0.1.3 vs public/js/app.js in localtower-0.1.4
- old
+ new
@@ -38,10 +38,11 @@
var $tr = $(this);
var action_input = $tr.find("[name='migrations[migrations][][action]']");
var table_name_input = $tr.find("[name='migrations[migrations][][table_name]']");
+ var belongs_to_input = $tr.find("[name='migrations[migrations][][belongs_to]']");
var column_text_input = $tr.find("[data-selector='column_text']");
var column_input = $tr.find("[data-selector='column_list']");
var new_column_name_input = $tr.find("[name='migrations[migrations][][new_column_name]']");
@@ -50,19 +51,20 @@
var nullable_input = $tr.find("[name='migrations[migrations][][nullable]']");
var action = action_input.val();
- $.each([column_text_input, column_input, new_column_name_input, column_type_input, index_input, nullable_input], function(i, el) {
+ $.each([belongs_to_input, column_text_input, column_input, new_column_name_input, column_type_input, index_input, nullable_input], function(i, el) {
el.hide();
});
var mapping = {
add_column: [column_text_input, column_type_input, index_input, nullable_input],
remove_column: [column_input],
rename_column: [column_input, new_column_name_input],
change_column_type: [column_input, column_type_input],
+ belongs_to: [belongs_to_input],
add_index_to_column: [column_input],
remove_index_to_column: [column_input],
drop_table: [],
}