educoder/db/migrate/20190401083919_change_quote...

7 lines
202 B

class ChangeQuotesToIntegerInAttachments < ActiveRecord::Migration[5.2]
def change
change_column :attachments, :quotes, :integer, :default => 0
add_index :attachments, :quotes
end
end