Skip to content

Commit

Permalink
Removed index (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavbiswa authored Mar 15, 2024
1 parent 8daf027 commit 990c920
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@
/test/dummy/db/*.sqlite3
/test/dummy/db/*.sqlite3-*
/test/dummy/log/*.log
/test/dummy/tmp/
/test/dummy/tmp/

.DS_STORE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
def self.up
<% attributes.each do |column| -%>
add_column :<%= table_name %>, :<%= "anonymized_#{column.name}" %>, :<%= column.type %>, index: <%= column.has_index? %>, unique: <%= column.has_uniq_index? %>
add_column :<%= table_name %>, :<%= "anonymized_#{column.name}" %>, :<%= column.type %>
<% end -%>
end

Expand Down

0 comments on commit 990c920

Please sign in to comment.